Merge branch 'reorder-preorder-filter' into 'master'
added new orderrequest module See merge request fronk/thetool!842
This commit is contained in:
33
db/migrations/20241223090000_warehouse_modify_7.php
Normal file
33
db/migrations/20241223090000_warehouse_modify_7.php
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user