getEnvironment() == "thetool") { $table = $this->table("Device", ["signed" => true]); $table->addColumn("parent_id", "integer", ["null" => true, "after" => "devicetype_id"]); $table->update(); } if($this->getEnvironment() == "addressdb") { } } public function down(): void { if($this->getEnvironment() == "thetool") { $this->table("Device")->removeColumn("parent_id")->save(); } if($this->getEnvironment() == "addressdb") { } } }