Migrations are really cool, but unlike in Ruby, most people still prefer to create/modify SQL in an appropriate database editor where you can actually see what you're doing. But this makes migrations useless. It would be ideal to have a tool (commandline/gii) to create migrations on the fly. The tool could compare the current database with the last migration and generate a new migration file automatically.
This way, you could -for example- make git automatically run the script when pulling/pushing so you never have to worry about the database structure.
Page 1 of 1
Create migrations of existing data
#2
Posted 18 July 2012 - 10:10 AM
wisp, on 19 May 2012 - 02:30 PM, said:
Migrations are really cool, but unlike in Ruby, most people still prefer to create/modify SQL in an appropriate database editor where you can actually see what you're doing. But this makes migrations useless. It would be ideal to have a tool (commandline/gii) to create migrations on the fly. The tool could compare the current database with the last migration and generate a new migration file automatically.
This way, you could -for example- make git automatically run the script when pulling/pushing so you never have to worry about the database structure.
This way, you could -for example- make git automatically run the script when pulling/pushing so you never have to worry about the database structure.
+1 on this one
Share this topic:
Page 1 of 1

Help












