22 lines
632 B
PHP
22 lines
632 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class WarehouseModify11 extends AbstractMigration {
|
|
public function up(): void {
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$table = $this->table("WarehouseOrder");
|
|
$table->addColumn("distributorId", "integer", ["null" => false]);
|
|
$table->save();;
|
|
}
|
|
}
|
|
|
|
public function down(): void {
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$table = $this->table("WarehouseOrder");
|
|
$table->removeColumn("distributorId");
|
|
$table->save();;
|
|
}
|
|
}
|
|
}
|