implemented new features for warehouseorderrequest

This commit is contained in:
Luca Haid
2025-01-07 16:49:20 +01:00
parent e20af3eca5
commit f622204aa0
12 changed files with 253 additions and 87 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->changeColumn("distributorId", "integer", ["null" => true]);
$table->save();;
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("WarehouseOrderRequest");
$table->changeColumn("distributorId", "integer", ["null" => false]);
$table->save();;
}
}
}