Merge branch 'fronkdev' into 'master'

Increased text column sizes in Mailtemplate

See merge request fronk/thetool!1463
This commit is contained in:
Frank Schubert
2025-06-13 03:28:15 +00:00

View File

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