This repository has been archived on 2026-11-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thetool/db/migrations/20250107160000_warehouse_modify_8.php
T

25 lines
683 B
PHP

<?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();;
}
}
}