From 7f309810a6d3da76c1a2c4ef8e900c88f47afee4 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 6 May 2008 00:17:10 +0000 Subject: Fixed a bug in DB Forge, when inserting an id field (#3456). --- system/database/DB_forge.php | 13 +++++++------ user_guide/changelog.html | 1 + 2 files changed, 8 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 diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 615d363bc..ffbf2e18b 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -109,6 +109,7 @@ SVN Commit: not currently released

  • Fixed assorted user guide typos (#3453, #4364, #4379, #4399, #4408, #4412, #4448, #4488).
  • Fixed an AR_caching error where it wasn't tracking table aliases (#3463).
  • Fixed an AR bug when joining with a table alias and table prefix (#4400).
  • +
  • Fixed a bug in DB Forge, when inserting an id field (#3456).
  • Fixed a bug in the DB class testing the $params argument.
  • Fixed a bug in the Table library where the integer 0 in cell data would be displayed as a blank cell.
  • Fixed bugs (#3523, #4350) in get_filenames() with recursion and problems with Windows when $include_path is used.
  • -- cgit v1.2.3-24-g4f1b