summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r--system/database/DB_forge.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index 5f25ebedc..2ddb21be7 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -132,12 +132,13 @@ class CI_DB_forge {
{
if ($field == 'id')
{
- $this->fields[] = array('id' => array(
- 'type' => 'INT',
- 'constraint' => 9,
- 'auto_increment' => TRUE
- )
- );
+ $this->add_field(array(
+ 'id' => array(
+ 'type' => 'INT',
+ 'constraint' => 9,
+ 'auto_increment' => TRUE
+ )
+ ));
$this->add_key('id', TRUE);
}
else