Files
thetool/db/migrations/20250612065913_mailtemplate_increase_text_length.php
2025-06-13 05:27:41 +02:00

33 lines
898 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class MailtemplateIncreaseTextLength extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Mailtemplate");
$table->changeColumn("body_text", "text", ["null" => true, "default" => null, "length" => \Phinx\Db\Adapter\MysqlAdapter::TEXT_LONG]);
$table->changeColumn("body_html", "text", ["null" => true, "default" => null, "length" => \Phinx\Db\Adapter\MysqlAdapter::TEXT_LONG]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}