Files
thetool/db/migrations/20260203131918_system_change_value_text.php

32 lines
723 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class SystemChangeValueText extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('System');
$table->changeColumn("value", "text", ["null" => false, "length" => Phinx\Db\Adapter\MysqlAdapter::TEXT_MEDIUM]);
$table->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}