<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Schema Migration on 远栈</title><link>https://stackonward.com/zh/tags/schema-migration/</link><description>Recent content in Schema Migration on 远栈</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Thu, 03 Sep 2026 21:12:38 +0800</lastBuildDate><atom:link href="https://stackonward.com/zh/tags/schema-migration/index.xml" rel="self" type="application/rss+xml"/><item><title>数据库迁移应该在发布哪一步执行：Expand、Migrate、Contract</title><link>https://stackonward.com/zh/posts/database-migration-release-order/</link><pubDate>Thu, 03 Sep 2026 02:20:00 +0800</pubDate><guid>https://stackonward.com/zh/posts/database-migration-release-order/</guid><description>&lt;p&gt;数据库迁移没有统一的“先于应用”或“晚于应用”答案。安全顺序取决于新旧应用能否同时使用当前 schema：新增兼容结构先执行，应用再上线，数据随后回填；删除字段、改名和收紧约束放到旧版本退出后的独立发布。&lt;/p&gt;</description></item></channel></rss>