Yii Framework Forum: Create migrations of existing data - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create migrations of existing data Rate Topic: -----

#1 User is offline   wisp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 192
  • Joined: 04-February 11

Posted 19 May 2012 - 02:30 PM

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.
1

#2 User is offline   Why Not Soluciones 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 16-July 12

Posted 18 July 2012 - 10:10 AM

View Postwisp, 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.


+1 on this one
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users