getEnvironment() == "thetool") { $table = $this->table("Preorder"); $table->addColumn("files", "text", ['null' => true, 'after' => 'note']); $table->update(); } } public function down(): void { if($this->getEnvironment() == "thetool") { $this->table("Preorder")->removeColumn("files")->save(); } } }