getEnvironment() == "thetool") { $table = $this->table("Invoiceposition"); $table->addColumn("options", "json", ["null" => true, "default" => null, "after" => "billing_period"]); $table->update(); } if($this->getEnvironment() == "addressdb") { } } public function down(): void { if($this->getEnvironment() == "thetool") { $this->table("Invoiceposition")->removeColumn("options")->update(); } if($this->getEnvironment() == "addressdb") { } } }