Welcome Guest, Not a member yet? Register   Sign In
question in the dbforge class
#1

[eluser]Mr-H[/eluser]
hi every body
i want to creat a table in the phpmyadmin with the dbforge class using UNIQUE key.
but in the user guide nothing pointed to that, it said that i can creat a primary key using:
Code:
$this->dbforge->add_key('id',true);
and creat key "what kind of key? i dont know" by puting this;
Code:
$this->dbforge->add_key('test');
so when i run the code i got the id as primary, and test as index" by default i think".
so my question is how can i creat the test field as Unique key.
thanks for reading


Messages In This Thread
question in the dbforge class - by El Forum - 07-20-2010, 04:55 AM
question in the dbforge class - by El Forum - 07-21-2010, 05:18 AM
question in the dbforge class - by El Forum - 07-21-2010, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB