getEnvironment() == "thetool") { $WarehouseShippingNote = $this->table("WarehouseShippingNote"); if (!$WarehouseShippingNote->hasColumn("metadata")) { $WarehouseShippingNote ->addColumn("metadata", "json", ["null" => true, "default" => null, "after" => "type"]) ->update(); } } } public function down(): void { if ($this->getEnvironment() == "thetool") { $WarehouseShippingNote = $this->table("WarehouseShippingNote"); if ($WarehouseShippingNote->hasColumn("metadata")) { $WarehouseShippingNote ->removeColumn("metadata") ->update(); } } } }