getEnvironment() == "thetool") { $WarehouseArticlePacket = $this->table("WarehouseArticlePacket"); if (!$WarehouseArticlePacket->hasColumn("externalArticleNumber")) { $WarehouseArticlePacket ->addColumn("externalArticleNumber", "string", ["limit" => 255, "null" => true]) ->update(); } } } public function down(): void { if ($this->getEnvironment() == "thetool") { $WarehouseArticlePacket = $this->table("WarehouseArticlePacket"); if ($WarehouseArticlePacket->hasColumn("externalArticleNumber")) { $WarehouseArticlePacket ->removeColumn("externalArticleNumber") ->update(); } } } }