summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/database/DB_forge.php6
-rw-r--r--system/database/drivers/mysql/mysql_forge.php2
-rw-r--r--system/database/drivers/mysqli/mysqli_forge.php2
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index 6dc2a4514..0317489f6 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -814,8 +814,8 @@ abstract class CI_DB_forge {
}
$this->_attr_auto_increment($attributes, $field);
- $this->_attr_comment($attributes, $field);
$this->_attr_unique($attributes, $field);
+ $this->_attr_comment($attributes, $field);
if (isset($attributes['TYPE']) && ! empty($attributes['CONSTRAINT']))
{
@@ -858,8 +858,8 @@ abstract class CI_DB_forge {
.$field['default']
.$field['null']
.$field['auto_increment']
- .$field['comment']
- .$field['unique'];
+ .$field['unique']
+ .$field['comment'];
}
// --------------------------------------------------------------------
diff --git a/system/database/drivers/mysql/mysql_forge.php b/system/database/drivers/mysql/mysql_forge.php
index 7053fa11d..ee89e1d80 100644
--- a/system/database/drivers/mysql/mysql_forge.php
+++ b/system/database/drivers/mysql/mysql_forge.php
@@ -192,8 +192,8 @@ class CI_DB_mysql_forge extends CI_DB_forge {
.$field['null']
.$field['default']
.$field['auto_increment']
- .$field['comment']
.$field['unique']
+ .$field['comment']
.$extra_clause;
}
diff --git a/system/database/drivers/mysqli/mysqli_forge.php b/system/database/drivers/mysqli/mysqli_forge.php
index c92d22264..e37bd1b80 100644
--- a/system/database/drivers/mysqli/mysqli_forge.php
+++ b/system/database/drivers/mysqli/mysqli_forge.php
@@ -194,8 +194,8 @@ class CI_DB_mysqli_forge extends CI_DB_forge {
.$field['null']
.$field['default']
.$field['auto_increment']
- .$field['comment']
.$field['unique']
+ .$field['comment']
.$extra_clause;
}
diff --git a/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php b/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
index 85b6ebe84..2152dea30 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
@@ -206,8 +206,8 @@ class CI_DB_pdo_mysql_forge extends CI_DB_pdo_forge {
.$field['null']
.$field['default']
.$field['auto_increment']
- .$field['comment']
.$field['unique']
+ .$field['comment']
.$extra_clause;
}