getEnvironment() == "thetool") { $WarehouseShippingNoteTable = $this->table("WarehouseShippingNote"); $WarehouseShippingNoteTable ->addColumn("type", "string", ["limit" => 255, "default" => ""]) ->save(); } } public function down(): void { if ($this->getEnvironment() == "thetool") { $WarehouseShippingNoteTable = $this->table("WarehouseShippingNote"); if ($WarehouseShippingNoteTable->hasColumn("type")) { $WarehouseShippingNoteTable ->removeColumn("type") ->save(); } } } }