Error on install: Syntax error or access violation: 1067 Invalid default value for 'end_time'
Fixes #1042
This commit is contained in:
parent
42bea5f876
commit
14f4e58188
|
@ -20,7 +20,7 @@ class FixDatabaseColumns extends AbstractMigration
|
|||
$build->changeColumn('project_id', 'integer', array('null' => false));
|
||||
$build->changeColumn('commit_id', 'string', array('limit' => 50, 'null' => false));
|
||||
$build->changeColumn('status', 'integer', array('null' => false));
|
||||
$build->changeColumn('log', 'text', array('null' => true, 'default' => ''));
|
||||
$build->changeColumn('log', 'text', array('null' => true));
|
||||
$build->changeColumn('branch', 'string', array('limit' => 50, 'null' => false, 'default' => 'master'));
|
||||
$build->changeColumn('created', 'datetime', array('null' => true));
|
||||
$build->changeColumn('started', 'datetime', array('null' => true));
|
||||
|
|
|
@ -5,7 +5,7 @@ use Phinx\Db\Adapter\MysqlAdapter;
|
|||
|
||||
class FixColumnTypes extends AbstractMigration
|
||||
{
|
||||
/**
|
||||
/*
|
||||
* Migrate Up.
|
||||
*/
|
||||
public function up()
|
||||
|
@ -14,7 +14,6 @@ class FixColumnTypes extends AbstractMigration
|
|||
$build = $this->table('build');
|
||||
$build->changeColumn('log', 'text', array(
|
||||
'null' => true,
|
||||
'default' => '',
|
||||
'limit' => MysqlAdapter::TEXT_MEDIUM,
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue