Hello ,
i have a question about the Yii migration tool ,when i add/Modify a table to the file generated in the public function up() and i retry the "yiic migration command" says
No new migration found. Your system is up-to-date.
Page 1 of 1
Database Migration ?
#3
Posted 01 February 2013 - 02:40 PM
mbi, on 01 February 2013 - 02:38 PM, said:
you have to create a new migration
Thanks for you answer !
but i don't understand why when i modify the file to add new table and try the migration tool !
it says ,it's up to date, despite of ,i changed the content of the file ?
Ps:how do i remove the migration file? (Manually or automatically)?
#4
Posted 01 February 2013 - 02:43 PM
you can migrate down, then modify your migration script, then migrate again
but only in early development
but only in early development
#6
Posted 01 February 2013 - 06:09 PM
Have you already migrated up? If not, this is something I ran into when trying the safeUp and safeDown. Make sure if you're using those two methods that you remove the up() and down(). This isn't mentioned in the book but appears to be required to allow the safe methods to run
Share this topic:
Page 1 of 1