Files
Ydisks-Xianyu-Helper/internal/db/migrations/postgres/00005_ws_messages.sql
T
ChristandClaude Opus 4.8 fb83aacb8b refactor(db): 阶段C - Postgres migration 补全
- migrations/postgres/ 8 个文件改为 Postgres 方言:
  BIGSERIAL、原生 BOOLEAN、TEXT 主键、ON CONFLICT DO NOTHING/UPDATE、
  "key" 双引号处理保留字
- 跳过 SQLite 历史遗留列(与 MySQL 版一致)
- 00005 ws_messages 空操作(00001 已建)

至此三套数据库 migration 全部就位,业务 SQL 通过方言适配器统一处理。
SQLite 全测试通过,MySQL/PG 待真实实例验证。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 13:02:30 +08:00

6 lines
219 B
SQL

-- +goose Up
-- ws_messages 表在 Postgres 版 00001 已创建,此迁移为空操作,保留版本号与 SQLite 对齐。
-- +goose Down
-- 空操作:ws_messages 在 00001 创建,回滚由 00001 Down 处理。