CI 3 Migration Not Running? |
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!
Check out Craftsman CLI and forget about creating additional controllers and see the actual DB migration output, here's a demo:
|
Welcome Guest, Not a member yet? Register Sign In |