added migration to resize oaid in Building/Termination
This commit is contained in:
36
db/migrations/20251111171837_termination_resize_code.php
Normal file
36
db/migrations/20251111171837_termination_resize_code.php
Normal 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") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user