37 lines
998 B
PHP
37 lines
998 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class TerminationResizeCode extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if($this->getEnvironment() == "thetool") {
|
|
$table = $this->table("Termination");
|
|
$table->changeColumn("code", "string", ["length" => 64, "null" => true, "default" => null]);
|
|
$table->update();
|
|
|
|
$table = $this->table("Building");
|
|
$table->changeColumn("code", "string", ["length" => 64, "null" => true, "default" => null]);
|
|
$table->changeColumn("oaid", "string", ["length" => 255, "null" => true, "default" => null]);
|
|
$table->update();
|
|
}
|
|
|
|
if($this->getEnvironment() == "addressdb") {
|
|
|
|
}
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
if($this->getEnvironment() == "thetool") {
|
|
|
|
}
|
|
|
|
if($this->getEnvironment() == "addressdb") {
|
|
|
|
}
|
|
}
|
|
}
|