Permalink
Browse files

Fix DBForge index creation on MySQL and CUBRID

  • Loading branch information...
1 parent 1f884d6 commit b0a97c100f5e7edc5e21ec7d07f768cd3b5618da @narfbg narfbg committed Nov 11, 2012
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit b0a97c1

Please sign in to comment.