Increased text column sizes in Mailtemplate
This commit is contained in:
@@ -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") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user