diff options
author | Andrey Andreev <narf@devilix.net> | 2014-11-03 21:22:57 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-11-03 21:22:57 +0100 |
commit | 288e95dbdcd1c4e4144861919090075b4661f330 (patch) | |
tree | 54eaadc4d4f1a99a2b2990c89a63828f6a221563 /system/database/DB_forge.php | |
parent | 72b4be8310dc5b05169501bd9851fedf559003a5 (diff) | |
parent | ce8aa3b5abe0b20da7dbee70fb49f440ad41b15c (diff) |
Merge pull request #3305 from zachflower/feature/mysql-comments
Add COMMENT support to MySQL Forge Drivers
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r-- | system/database/DB_forge.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index aa8bbbe3f..85505ce41 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -808,6 +808,11 @@ abstract class CI_DB_forge { $this->_attr_auto_increment($attributes, $field); $this->_attr_unique($attributes, $field); + if (isset($attributes['COMMENT'])) + { + $field['comment'] = $this->db->escape($attributes['COMMENT']); + } + if (isset($attributes['TYPE']) && ! empty($attributes['CONSTRAINT'])) { switch (strtoupper($attributes['TYPE'])) |