Generating migration from existing database in Yii or Laravel

后端 未结 9 920
南方客
南方客 2021-01-31 05:39

I\'m working on a project that has a fairly complex database (150+ tables). In order to be able to maintain changes, I\'ve decided to add migrations, preferably using Yii or Lar

9条回答
  •  旧时难觅i
    2021-01-31 06:37

    There is one now for Yii:

    This allows a distributed team to easily update the db locally and then distribute it's updates with thee other developers automatically with the rest of the code via a versioning control system (I used git). It also performs a full initial db dump to xml and to a migration file.

    project home: https://code.google.com/p/yii-automatically-generated-migration-files/

    source code: https://code.google.com/p/yii-automatically-generated-migration-files/source/checkout

    I've created it from scratch as I was annoyed with the fact that I had to do this manually in order to distribute it to my team.

    Hope it helps!

    Feel free to share bugs, improvements and comments.

提交回复
热议问题