Skip to content

Commit

Permalink
Change email_queue.template_vars to longtext.
Browse files Browse the repository at this point in the history
  • Loading branch information
parkmira committed Jun 10, 2019
1 parent eb944f4 commit a2821af
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions config/Migrations/20190610024410_AlterTemplateVarsToEmailQueue.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
use Migrations\AbstractMigration;
use Phinx\Db\Adapter\MysqlAdapter;

class AlterTemplateVarsToEmailQueue extends AbstractMigration
{

/**
* Up Method
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-up-method
*
* @return void
*/
public function up()
{
$this->table('email_queue')
->changeColumn('template_vars', 'text', [
'limit' => MysqlAdapter::TEXT_LONG,
'default' => null,
'null' => false,
])
->update();
}

/**
* Down Method
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-down-method
*
* @return void
*/
public function down()
{
$this->table('email_queue')
->changeColumn('template_vars', 'text', [
'limit' => null,
'default' => null,
'null' => false,
])
->update();
}
}

0 comments on commit a2821af

Please sign in to comment.