![]() |
CI 3 Migration Not Running? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: CI 3 Migration Not Running? (/showthread.php?tid=66820) |
CI 3 Migration Not Running? - Jadon - 12-07-2016 I am just getting started with using Migrations in CI 3 and I'm pretty sure I've followed the example to the letter. However, when I run my migration, no changes are made. In my migration.php config I have PHP Code: $config['migration_enabled'] = TRUE My migration file is application/migrations/20161206075650_my_first_migration.php and looks like this: PHP Code: <?php Here is my controller function to run the migrations: PHP Code: public function migrate() { For some reason, it isn't running my migration. I get this in the logs: Code: INFO - 2016-12-07 10:33:55 --> Migrations Class Initialized I checked the database too and there isn't a migrations table. I assumed this would be created automatically? I checked to make sure it's using the right database. I tried this with the latest version of CI 3 and it's still not working. I've looked around the forums, various blogs and Stack Overflow posts and haven't found a solution for this. Help would be very appreciated! RE: CI 3 Migration Not Running? - dsv - 12-08-2016 Check out Craftsman CLI and forget about creating additional controllers and see the actual DB migration output, here's a demo: ![]() |