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:
@@ -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();;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user