From 0f680c800b1616c291702e66fc6dc6c2c5f60666 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Tue, 3 Feb 2015 11:04:55 +0000 Subject: [PATCH] Make build log and meta value columns use MEDIUMTEXT data type. --- .../20150203105015_fix_column_types.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PHPCI/Migrations/20150203105015_fix_column_types.php diff --git a/PHPCI/Migrations/20150203105015_fix_column_types.php b/PHPCI/Migrations/20150203105015_fix_column_types.php new file mode 100644 index 00000000..9a693594 --- /dev/null +++ b/PHPCI/Migrations/20150203105015_fix_column_types.php @@ -0,0 +1,28 @@ +table('build'); + $build->changeColumn('log', 'text', array( + 'null' => true, + 'default' => '', + 'limit' => MysqlAdapter::TEXT_MEDIUM, + )); + + // Update the build meta value column to MEDIUMTEXT: + $buildMeta = $this->table('build_meta'); + $buildMeta->changeColumn('meta_value', 'text', array( + 'null' => false, + 'limit' => MysqlAdapter::TEXT_MEDIUM, + )); + } +} \ No newline at end of file