Sequelize.js: how to use migrations and sync

后端 未结 11 1439
一向
一向 2020-12-02 03:20

I\'m close to having my project ready to launch. I have big plans for after launch and the database structure is going to change -- new columns in existing tables as well as

11条回答
  •  一生所求
    2020-12-02 04:01

    Use version. Version of the application depends on the version of the database. If the new version requires an update of a database, create migration for it.

    update: I decided to abandon the migration (KISS) and run script update_db (sync forse: false) when it is needed.

提交回复
热议问题