From 00a2248c93e291b5b83738d727983c6498cf7e42 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Sun, 26 Feb 2017 20:46:24 +0700 Subject: [PATCH] Fixed Build.log column size for MySQL (removed 'NOT NULL') --- ...2922_fixed_build_log_column_for_mysql2.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/PHPCensor/Migrations/20170226132922_fixed_build_log_column_for_mysql2.php 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 new file mode 100644 index 00000000..3b7b9bb9 --- /dev/null +++ b/src/PHPCensor/Migrations/20170226132922_fixed_build_log_column_for_mysql2.php @@ -0,0 +1,22 @@ +getAdapter(); + if ($adapter instanceof MysqlAdapter) { + $this + ->table('build') + ->changeColumn('log', MysqlAdapter::PHINX_TYPE_TEXT, ['limit' => MysqlAdapter::TEXT_LONG, 'null' => true]) + ->save(); + } + } + + public function down() + { + } +}