getEnvironment() == "thetool") { $table = $this->table('WarehouseStocktakeItem'); $table->addColumn('overwrittenById', 'integer', ['null' => true, 'signed' => true, 'after' => 'scannedBy']) ->update(); } } public function down(): void { if ($this->getEnvironment() == "thetool") { $table = $this->table('WarehouseStocktakeItem'); $table->removeColumn('overwrittenById') ->update(); } } }