Generating migration from existing database in Yii or Laravel

后端 未结 9 903
南方客
南方客 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条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 06:20

    Here is a Laravel package I created that does exactly that. It automatically generates clean and accurate Laravel migrations from your existing database.

    As it doesn't make any assumptions of the database, it should work on any database structure while even keeping the original index and foreign key names.

    https://github.com/Xethron/migrations-generator

提交回复
热议问题