diff --git a/src/PHPCensor/Migrations/20170223113127_fixed_build_log_column_for_mysql.php b/src/PHPCensor/Migrations/20170223113127_fixed_build_log_column_for_mysql.php index 97db6cd0..48b956af 100644 --- a/src/PHPCensor/Migrations/20170223113127_fixed_build_log_column_for_mysql.php +++ b/src/PHPCensor/Migrations/20170223113127_fixed_build_log_column_for_mysql.php @@ -11,7 +11,11 @@ class FixedBuildLogColumnForMysql extends AbstractMigration if ($adapter instanceof MysqlAdapter) { $this ->table('build') - ->changeColumn('log', MysqlAdapter::PHINX_TYPE_TEXT, ['limit' => MysqlAdapter::TEXT_LONG]) + ->changeColumn( + 'log', + MysqlAdapter::PHINX_TYPE_TEXT, + ['limit' => MysqlAdapter::TEXT_LONG] + ) ->save(); } } diff --git a/src/PHPCensor/Migrations/20170226132922_fixed_build_log_column_for_mysql2.php b/src/PHPCensor/Migrations/20170226132922_fixed_build_log_column_for_mysql2.php index 3b7b9bb9..7ff4e4f2 100644 --- a/src/PHPCensor/Migrations/20170226132922_fixed_build_log_column_for_mysql2.php +++ b/src/PHPCensor/Migrations/20170226132922_fixed_build_log_column_for_mysql2.php @@ -11,7 +11,11 @@ class FixedBuildLogColumnForMysql2 extends AbstractMigration if ($adapter instanceof MysqlAdapter) { $this ->table('build') - ->changeColumn('log', MysqlAdapter::PHINX_TYPE_TEXT, ['limit' => MysqlAdapter::TEXT_LONG, 'null' => true]) + ->changeColumn( + 'log', + MysqlAdapter::PHINX_TYPE_TEXT, + ['limit' => MysqlAdapter::TEXT_LONG, 'null' => true] + ) ->save(); } } diff --git a/src/PHPCensor/Migrations/20170711112805_fixed_build_meta_for_mysql.php b/src/PHPCensor/Migrations/20170711112805_fixed_build_meta_for_mysql.php new file mode 100644 index 00000000..745f4309 --- /dev/null +++ b/src/PHPCensor/Migrations/20170711112805_fixed_build_meta_for_mysql.php @@ -0,0 +1,26 @@ +getAdapter(); + if ($adapter instanceof MysqlAdapter) { + $this + ->table('build_meta') + ->changeColumn( + 'meta_value', + MysqlAdapter::PHINX_TYPE_TEXT, + ['limit' => MysqlAdapter::TEXT_LONG, 'null' => false] + ) + ->save(); + } + } + + public function down() + { + } +}