summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/subdrivers
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/pdo/subdrivers
parent1f884d6fece302ba53f106516880da4dd91f5660 (diff)
Fix DBForge index creation on MySQL and CUBRID
Diffstat (limited to 'system/database/drivers/pdo/subdrivers')
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php10
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php10
2 files changed, 20 insertions, 0 deletions
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