CodeIgniter Forums
A new tutorial about migrations - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Learn More (https://forum.codeigniter.com/forumdisplay.php?fid=15)
+--- Thread: A new tutorial about migrations (/showthread.php?tid=62498)



A new tutorial about migrations - Avenirer - 07-22-2015

Hello,

I would like to present to you a new tutorial (part 1 of 3...). This one is about migrations: http://avenir.ro/the-migrations-in-codeigniter-or-how-to-have-a-git-for-your-database/

Hope you will enjoy it and maybe tell me your opinion about it


RE: A new tutorial about migrations - solidcodes - 07-28-2015

thanks for always sharig your knowledge dude.


RE: A new tutorial about migrations - Wouter60 - 07-29-2015

@Avenirer, there's a small error in this line of code (part of the undo_migration() method in the Migrate controller):
PHP Code:
$penultimate = (sizeof($migration_keys)==1) ? $migration_keys[sizeof(migration_keys) - 2]; 
The $ sign before migration_keys in sizeof(migration_keys) is missing. PHP says it's an undefined constant.
Other than that, it works great!!


RE: A new tutorial about migrations - Avenirer - 07-29-2015

Thank you. Will do the correction.