Merge branch 'add-order-v2' into 'master'

added new features for warehouse order request

See merge request fronk/thetool!953
This commit is contained in:
Luca Haid
2025-01-28 10:03:27 +00:00
5 changed files with 114 additions and 8 deletions
@@ -0,0 +1,24 @@
<?php declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class WarehouseModify8 extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("WarehouseOrderRequest");
$table->addColumn("canceled", "integer", ["null" => false, "default" => 0]);
$table->save();;
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("WarehouseOrderRequest");
$table->removeColumn("canceled");
$table->save();;
}
}
}