summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-11 12:58:53 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-11 12:58:53 +0100
commitb0a97c100f5e7edc5e21ec7d07f768cd3b5618da (patch)
tree3d494214e14beb8181ef6fc1e0269ccd0968577e /system/database/drivers
parent1f884d6fece302ba53f106516880da4dd91f5660 (diff)
Fix DBForge index creation on MySQL and CUBRID
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/cubrid/cubrid_forge.php10
-rw-r--r--system/database/drivers/mysql/mysql_forge.php10
-rw-r--r--system/database/drivers/mysqli/mysqli_forge.php10
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php10
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php10
5 files changed, 50 insertions, 0 deletions
diff --git a/system/database/drivers/cubrid/cubrid_forge.php b/system/database/drivers/cubrid/cubrid_forge.php
index e3f8bc334..86a41e57b 100644
--- a/system/database/drivers/cubrid/cubrid_forge.php
+++ b/system/database/drivers/cubrid/cubrid_forge.php
@@ -43,6 +43,16 @@ class CI_DB_cubrid_forge extends CI_DB_forge {
protected $_create_database = FALSE;
/**
+ * CREATE TABLE keys flag
+ *
+ * Whether table keys are created from within the
+ * CREATE TABLE statement.
+ *
+ * @var bool
+ */
+ protected $_create_table_keys = TRUE;
+
+ /**
* DROP DATABASE statement
*
* @var string
diff --git a/system/database/drivers/mysql/mysql_forge.php b/system/database/drivers/mysql/mysql_forge.php
index 9cee385df..d4a8b4ff7 100644
--- a/system/database/drivers/mysql/mysql_forge.php
+++ b/system/database/drivers/mysql/mysql_forge.php
@@ -43,6 +43,16 @@ class CI_DB_mysql_forge extends CI_DB_forge {
protected $_create_database = 'CREATE DATABASE %s CHARACTER SET %s COLLATE %s';
/**
+ * CREATE TABLE keys flag
+ *
+ * Whether table keys are created from within the
+ * CREATE TABLE statement.
+ *
+ * @var bool
+ */
+ protected $_create_table_keys = TRUE;
+
+ /**
* UNSIGNED support
*
* @var array
diff --git a/system/database/drivers/mysqli/mysqli_forge.php b/system/database/drivers/mysqli/mysqli_forge.php
index 294fc20b6..5a6560b25 100644
--- a/system/database/drivers/mysqli/mysqli_forge.php
+++ b/system/database/drivers/mysqli/mysqli_forge.php
@@ -43,6 +43,16 @@ class CI_DB_mysqli_forge extends CI_DB_forge {
protected $_create_database = 'CREATE DATABASE %s CHARACTER SET %s COLLATE %s';
/**
+ * CREATE TABLE keys flag
+ *
+ * Whether table keys are created from within the
+ * CREATE TABLE statement.
+ *
+ * @var bool
+ */
+ protected $_create_table_keys = TRUE;
+
+ /**
* UNSIGNED support
*
* @var array
diff --git a/system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php b/system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php
index c01a0fb81..d63a4b0a6 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php
@@ -50,6 +50,16 @@ class CI_DB_pdo_cubrid_forge extends CI_DB_pdo_forge {
protected $_drop_database = FALSE;
/**
+ * CREATE TABLE keys flag
+ *
+ * Whether table keys are created from within the
+ * CREATE TABLE statement.
+ *
+ * @var bool
+ */
+ protected $_create_table_keys = TRUE;
+
+ /**
* DROP TABLE IF statement
*
* @var string
diff --git a/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php b/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
index 1e69d693e..24c470a83 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
@@ -50,6 +50,16 @@ class CI_DB_pdo_mysql_forge extends CI_DB_pdo_forge {
protected $_create_table_if = 'CREATE TABLE IF NOT EXISTS';
/**
+ * CREATE TABLE keys flag
+ *
+ * Whether table keys are created from within the
+ * CREATE TABLE statement.
+ *
+ * @var bool
+ */
+ protected $_create_table_keys = TRUE;
+
+ /**
* DROP TABLE IF statement
*
* @var string