Merge branch 'reorder-preorder-filter' into 'master'

added new orderrequest module

See merge request fronk/thetool!842
This commit is contained in:
Luca Haid
2024-12-23 08:34:23 +00:00
4 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class WarehouseModify7 extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("WarehouseOrderRequest");
$table->addColumn("anzahl", "integer", ["null" => false])
->addColumn("ware", "string", ["null" => false, "limit" => 255])
->addColumn("verwendungszweck", "text", ["null" => false])
->addColumn("create", "integer", ["null" => false])
->addColumn("createBy", "integer", ["null" => false])
->addColumn("distributorId", "integer", ["null" => false])
->addColumn("order", "integer", ["null" => true])
->addColumn("orderBy", "integer", ["null" => true])
->addColumn("takeOver", "integer", ["null" => true])
->addColumn("takeOverBy", "integer", ["null" => true])
->addColumn("warehouseLocation", "string", ["null" => true, "limit" => 255])
->addColumn("note", "text", ["null" => true])
->create();
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("WarehouseOrderRequest")->drop()->save();
}
}
}