added migration to resize oaid in Building/Termination

This commit is contained in:
Frank Schubert
2025-11-11 18:33:25 +01:00
parent dda503c615
commit 7a3b699a51

View File

@@ -0,0 +1,36 @@
<?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") {
}
}
}