codeigniter-migrate icon indicating copy to clipboard operation
codeigniter-migrate copied to clipboard

Keep track of db migration

Open federicovilla opened this issue 7 years ago • 1 comments

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 )

federicovilla avatar Dec 29 '17 08:12 federicovilla

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:

codeigniter-migrate

Please, look at this project. I think it will be very useful for you see the databases.

https://www.adminer.org/

natanfelles avatar Dec 29 '17 18:12 natanfelles