getEnvironment() == "thetool") { $table = $this->table('Invoice'); $table->addColumn("vatgroup_id", "integer", ["null" => false, "after" => "total_gross"]); $table->update(); } if($this->getEnvironment() == "addressdb") { } } public function down(): void { if($this->getEnvironment() == "thetool") { $this->table('Invoice')->removeColumn("vatgroup_id")->save(); } if($this->getEnvironment() == "addressdb") { } } }