Generating migration from existing database in Yii or Laravel

后端 未结 9 1010
南方客
南方客 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:35

    I use both Yii and Laravel and I could not find what you require for either of them. They both create empty files and you need to create the migration script yourself. For a table of 150 tables it will be challenge to create the migrations yourself, but it is not quite as hard as you imagine. Because you already have the information on the fields it should not take so long to create.

提交回复
热议问题