33 lines
898 B
PHP
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") {
|
|
|
|
}
|
|
}
|
|
}
|