From 3725d562f6515977dee3ad0b1344ce67cec040e1 Mon Sep 17 00:00:00 2001 From: Tim Hovius Date: Fri, 27 May 2016 22:13:02 +0200 Subject: [PATCH 1/2] Fixed an error when creating a project (column archived has no default value) --- PHPCI/Migrations/20150131075425_archive_project.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Migrations/20150131075425_archive_project.php b/PHPCI/Migrations/20150131075425_archive_project.php index 796fd48b..4eca40e5 100644 --- a/PHPCI/Migrations/20150131075425_archive_project.php +++ b/PHPCI/Migrations/20150131075425_archive_project.php @@ -10,7 +10,7 @@ class ArchiveProject extends AbstractMigration public function up() { $project = $this->table('project'); - $project->addColumn('archived', 'boolean'); + $project->addColumn('archived', 'boolean', array('null' => false, 'default' => 0)); $project->save(); } From 953ec67c296ec2ced0b9ae5d7e53a1cf7e1b97d0 Mon Sep 17 00:00:00 2001 From: Tim Hovius Date: Fri, 27 May 2016 22:31:05 +0200 Subject: [PATCH 2/2] Fixed an error when the build error message is too long --- PHPCI/Migrations/20151014091859_errors_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Migrations/20151014091859_errors_table.php b/PHPCI/Migrations/20151014091859_errors_table.php index a064f6e5..fe28b094 100644 --- a/PHPCI/Migrations/20151014091859_errors_table.php +++ b/PHPCI/Migrations/20151014091859_errors_table.php @@ -14,7 +14,7 @@ class ErrorsTable extends AbstractMigration $table->addColumn('line_start', 'integer', array('signed' => false, 'null' => true)); $table->addColumn('line_end', 'integer', array('signed' => false, 'null' => true)); $table->addColumn('severity', 'integer', array('signed' => false, 'limit' => MysqlAdapter::INT_TINY)); - $table->addColumn('message', 'string', array('limit' => 250)); + $table->addColumn('message', 'text'); $table->addColumn('created_date', 'datetime'); $table->addIndex(array('build_id', 'created_date'), array('unique' => false)); $table->addForeignKey('build_id', 'build', 'id', array('delete'=> 'CASCADE', 'update' => 'CASCADE'));