codeigniter-migrate
codeigniter-migrate copied to clipboard
Keep track of db migration
Since we could have several database and several migration files too, I'm wondering if or how I could track on which database each migration has been executed. I mean: I could have a migration file that I'd like to perform on a Dev DB...after made it and needed test, I'd like to perform that migation to the production DB...how about to see somewhere in some field on which DB I have performed a migration? What do you think? Thanks ( sorry for bad english..hope I explained my thought )
Well, you can configure your database groups in application/config/databases.php.
After this, if you open the migrate page you can change the group and will see the current version per db group as this image:
Please, look at this project. I think it will be very useful for you see the databases.
https://www.adminer.org/