Files
thetool/db/migrations/20251111171837_termination_resize_code.php
2025-11-11 18:33:25 +01:00

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") {
}
}
}