From 7b951e0d23ae2ed48d33b0abf4c97d2d48717797 Mon Sep 17 00:00:00 2001 From: Yasen Yanev Date: Mon, 27 Jan 2014 14:59:24 +0200 Subject: [PATCH] Added comment to migrate options --- classes/Migration/Driver/Column.php | 1 + classes/Migration/Driver/Mysql/Column.php | 1 + 2 files changed, 2 insertions(+) diff --git a/classes/Migration/Driver/Column.php b/classes/Migration/Driver/Column.php index 3627af1..0020ef1 100644 --- a/classes/Migration/Driver/Column.php +++ b/classes/Migration/Driver/Column.php @@ -22,6 +22,7 @@ abstract class Migration_Driver_Column 'default', 'unsigned', 'values', + 'comment', ); protected $params = array(); diff --git a/classes/Migration/Driver/Mysql/Column.php b/classes/Migration/Driver/Mysql/Column.php index f62c4bb..5bf5726 100644 --- a/classes/Migration/Driver/Mysql/Column.php +++ b/classes/Migration/Driver/Mysql/Column.php @@ -135,6 +135,7 @@ public function sql() $auto ? ("AUTO_INCREMENT") : NULL, $after ? ("AFTER `{$after}`") : NULL, $first ? ("FIRST") : NULL, + $comment ? ("COMMENT '{$comment}'") : NULL, ))); }