Continuous Integration with EF Code First Migrations

后端 未结 2 625
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 00:48

I was wondering if I could automate completely code first migrations for continuous integration.

Currently my continuous integration simply simply

2条回答
  •  伪装坚强ぢ
    2021-01-04 01:05

    Part of continuous integration is also possibility of rolling back bad changes if they don't pass the tests.

    • Do you write your database upgrade scripts in a way they can be also downgraded?
    • Do you create some save-points or backups for each commit?
    • Would you lose data in the database in case of backup/restores on bad commits?
    • What is bad change is in the DDL itself?

    Those are some of the questions you should think about before implementing it.

提交回复
热议问题