Fixed Build.log column size for MySQL (removed 'NOT NULL')
This commit is contained in:
parent
32ccf1ec11
commit
00a2248c93
1 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
use Phinx\Db\Adapter\MysqlAdapter;
|
||||
|
||||
class FixedBuildLogColumnForMysql2 extends AbstractMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$adapter = $this->getAdapter();
|
||||
if ($adapter instanceof MysqlAdapter) {
|
||||
$this
|
||||
->table('build')
|
||||
->changeColumn('log', MysqlAdapter::PHINX_TYPE_TEXT, ['limit' => MysqlAdapter::TEXT_LONG, 'null' => true])
|
||||
->save();
|
||||
}
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue