Do Visual Studio Database Project *.refactorlog Files Belong in Source Control?
Do Visual Studio Database Project *.refactorlog Files Belong in Source Control?
问题
I am using git (via GitHub for Windows) and I am using the latest .gitignore for Visual Studio from GitHub
I notice that my <ProjectName>.refactorlog
files are being included in my commits.
Do .refactorlog files belong in source control?
回答
The .refactorlog
should be in source control if you intend to move database objects across schemas.
See: MSDN: Move a Database Object to a Different Schema
Relevant section: Preserving Your Intent With The Refactoring Log
When you move a database object to a different schema, an entry is added to the refactoring log for your database project. When you deploy your changes, this log helps ensure that the corresponding object in the target environment is renamed as you intended. Otherwise, the existing object would be dropped, and an object would be added with the new name. The log is maintained in an XML file that is named
ProjectName.refactorlog
. You check this file in to version control when you check in the other files that compose your database project. TheProjectName.refactorlog
file contains only information about refactoring operations that require special handling during deployment.
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2021-09-08 OpenSSL errno 10054
2021-09-08 Why aren't telnet bots finishing the three-way handshake?
2021-09-08 Telnet shows blank screen on port 443 but TCP handshake not done 【openssl s_client -connect】
2021-09-08 You have a private key that corresponds to this certificate but CryptAcquireCertificatePrivateKey failed.
2021-09-08 劳动合同的必备条款有哪些?
2021-09-08 openssl pkcs12
2021-09-08 How to generate a self-signed SSL certificate using OpenSSL?