如何使用Azure SqlDb迁移表 [英] What do to with Azure SqlDb Migrations table

查看:92
本文介绍了如何使用Azure SqlDb迁移表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个替换ASP.NET Core网站来替换我的Azure App Service中的现有网站.我确保新网站代码中的所有表和列名都相同,以便我可以继续使用生产数据库.现在 我感觉开发和生产数据库架构匹配,我打算删除dev迁移和迁移表.然后,让EF Core重新生成初始迁移.我的问题是如何继续使用生产数据库,发布 新网站到Azure App Service,并且生产迁移表条目没有任何问题?

I am building a replacement ASP.NET Core web site to replace an existing web site in my Azure App Service. I have made sure that all tables and column names are the same in the new web site code so that I may continue using the production database. Now that I feel like the development and production database schema match, I was going to delete the dev migrations and migration table.  Then let EF Core regenerate an initial migration. My question was how do I keep using the production database, publish the new web site to the Azure App Service and not have any issues with the production migration table entries?

生产迁移表是否需要删除,行被截断还是什么?

Does the production migration table need to be deleted, rows truncated or what?

Orgbrat

推荐答案

另一个与应用程序开发/迁移相关的论坛主题可能会更好地回答这个问题.
This question might be better answered by another forum topic related to app development/migration. 


这篇关于如何使用Azure SqlDb迁移表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆