Merge branch 'Warehouse/improve' into 'master'

missing migration

See merge request fronk/thetool!1971
This commit is contained in:
Luca Haid
2025-12-17 17:33:33 +00:00

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class WarehouseStocktakeItemAddOverwritten extends AbstractMigration
{
public function up(): void
{
if ($this->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();
}
}
}