getEnvironment() == "thetool") { $table = $this->table("Timerecording"); $table->renameColumn('commend', 'comment') ->save(); } if($this->getEnvironment() == "addressdb") { } } public function down(): void { if($this->getEnvironment() == "thetool") { $table = $this->table("Timerecording"); $table->renameColumn('comment', 'commend') ->save(); } if($this->getEnvironment() == "addressdb") { } } }