Schema Migration
约 1 分钟阅读
Design Schema Migration
- 既要 fact schema
- 当前 DB Schema 状态,准确的 create 信息
- Single Source Of Truth
- 又要 migration schema
- 记录历史变更
- 支持回滚
- 版本控制
atlas
- ariga/atlasGitHubariga/atlasariga/atlas · Apache-2.0, Go · Schema 迁移工具 · 支持 SQL, HCL, ORM 作为 Schema 来源 · 支持 PostgresSQL, MySQL, MariaDB, SQLite · 支持作为 terraform 的 provider笔记:atlas
- 支持两种模式 - schema / migration
- schema 支持 sql / dsl / hcl / json
- migration 支持特殊的 template / instruction
关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- Schema Design笔记 · Migration
Resource - 资源表、基础字段、扩展字段、来源字段。 · State - / / / reason / 软删除。 · Ownership - 、、、visibility、共享授权。 · Auth - AuthN、AuthZ、access token、permission grant、RBAC 边界。
参考资料
GitHub1 条
- ariga/atlasgithub.com/ariga/atlas