Migration - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Migration (/showthread.php?tid=59755) |
Migration - El Forum - 11-13-2013 [eluser]cerberus478[/eluser] I'm doing a tutorial on migration and for some reason I'm getting this error Quote:Error Number: 1146 This is my controller Code: <?php and this is the migration php file, its located in the migrations folder that I created Code: <?php Migration - El Forum - 11-14-2013 [eluser]noideawhattotypehere[/eluser] I think you have to either manually create session table or make a migration > swap to database sessions after that. Migration - El Forum - 11-14-2013 [eluser]CroNiX[/eluser] I'm not sure you are using dbforge::add_field() correctly, either. The user guide shows passing an array of arrays containing individual field parameter definitions. You are passing an array of raw SQL field definitions. Instead of 'session_id VARCHAR(40) DEFAULT \'0\' NOT NULL' it should be something like Code: array( |