getEnvironment() == "thetool") { $table = $this->table("Workorder"); $table ->addColumn("metadata", "json", [ 'null' => true, 'default' => null, 'after' => 'cableType' ]) ->update(); } } public function down(): void { if ($this->getEnvironment() == "thetool") { $this->table("Workorder") ->removeColumn("metadata") ->save(); } } }