Files
thetool/db/migrations/20230928105441_alter_rimoworkorder_createdata_mediumtext.php
2023-09-28 13:01:16 +02:00

32 lines
731 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AlterRimoworkorderCreatedataMediumtext extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("RimoWorkorder");
$table->changeColumn("create_data", "text", ['limit' => Phinx\Db\Adapter\MysqlAdapter::TEXT_MEDIUM]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}