Welcome Guest, Not a member yet? Register   Sign In
Error in Migrations documentation
#1

[eluser]Unknown[/eluser]
On this page
http://ellislab.com/codeigniter/user-gui...ation.html

I am pretty sure that an index needs to be created on blog_id in the up() method :

Code:
$this->dbforge->add_key('blog_id', TRUE);//add this line
$this->dbforge->create_table('blog');

If not I get the following error :

Quote:Incorrect table definition; there can be only one auto column and it must be defined as a key

Anyone can update the doc?




Theme © iAndrew 2016 - Forum software by © MyBB