完成真实 PostgreSQL/Flyway 空库、升级与回退演练 #16

Closed
opened 2026-07-28 07:28:31 +00:00 by wangziqi · 0 comments
Owner

Parent

#12

Question

在与生产版本匹配的 PostgreSQL 空库及升级库上,Education 模块 Flyway migration 的执行顺序、baseline 前提、验证查询、锁影响和应用回退边界是什么?如何证明应用版本回退或功能关闭不会删除练习、报告、幂等记录、错题、收藏和原生目录历史?

Current evidence

  • 当前 baseline 为 4009V4010 是首个受管 migration。
  • #20 新增 V4020__create_native_catalog.sql
  • 已在一次性 PostgreSQL 18.4 容器中用 Flyway 12.4.0 验证空库首次 migrate 到 4020,并验证第二次 migrate 为 no-op。
  • 以上只覆盖原生目录空库链路,不等于完整生产版本升级、锁影响和历史学习数据保护演练。

Resolution required

记录 PostgreSQL/Flyway 版本、应用与 migration revision、空库和升级库执行日志、flyway_schema_history、约束/索引验证、耗时与锁观察、应用回退步骤、历史数据行数与可读性证据。不得记录数据库密码;不得把 destructive rollback SQL 作为常规应用回退。

## Parent https://git.gongxue100.com/wangziqi/ruoyi-vue-pro/issues/12 ## Question 在与生产版本匹配的 PostgreSQL 空库及升级库上,Education 模块 Flyway migration 的执行顺序、baseline 前提、验证查询、锁影响和应用回退边界是什么?如何证明应用版本回退或功能关闭不会删除练习、报告、幂等记录、错题、收藏和原生目录历史? ## Current evidence - 当前 baseline 为 `4009`,`V4010` 是首个受管 migration。 - #20 新增 `V4020__create_native_catalog.sql`。 - 已在一次性 PostgreSQL 18.4 容器中用 Flyway 12.4.0 验证空库首次 migrate 到 4020,并验证第二次 migrate 为 no-op。 - 以上只覆盖原生目录空库链路,不等于完整生产版本升级、锁影响和历史学习数据保护演练。 ## Resolution required 记录 PostgreSQL/Flyway 版本、应用与 migration revision、空库和升级库执行日志、`flyway_schema_history`、约束/索引验证、耗时与锁观察、应用回退步骤、历史数据行数与可读性证据。不得记录数据库密码;不得把 destructive rollback SQL 作为常规应用回退。
wangziqi added the
wayfinder:task
label 2026-07-28 07:28:31 +00:00
wangziqi changed title from 完成真实 MySQL 空库迁移升级与回滚演练 to 完成真实 PostgreSQL/Flyway 空库、升级与回退演练 2026-07-29 04:08:12 +00:00
Sign in to join this conversation.
No description provided.