getEnvironment() == "thetool") { $table = $this->table("ManualInvoiceposition"); $table->addColumn("unit", "string", [ "null" => false, "default" => "Stk.", "length" => 10, "after" => "amount" ]); $table->save(); } } public function down(): void { if($this->getEnvironment() == "thetool") { $this->table("ManualInvoiceposition")->removeColumn("unit")->save(); } } }