Permalink
Browse files

adding auto incremenet

  • Loading branch information...
1 parent 678141a commit 88118493c837b9bf13f17f0812763dbcf6d6e4a6 @markhuot markhuot committed Apr 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 upd.base.php
View
@@ -45,7 +45,8 @@ public function install()
/*
// create tables
$this->EE->load->dbforge();
- $this->EE->dbforge->add_field("field_name varchar(100) NULL");
+ $this->EE->dbforge->add_field("`id` int(11) NOT NULL AUTO_INCREMENT");
+ $this->EE->dbforge->add_field("`field_name` varchar(100) NULL");
$this->EE->dbforge->add_key("id", TRUE);
$this->EE->dbforge->create_table('table_name');
*/

0 comments on commit 8811849

Please sign in to comment.