google / google/python-spanner-orm

Make migrations a bit less tedious to write.

未关闭
#115 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
41
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

Ideas:
1. It seems like many `SchemaUpdate` subclasses have inherent inverses, e.g., it should be easy to derive a `DropTable` from a `CreateTable`. Could we simplify `upgrade()` and `downgrade()` into a single function that returns objects that can process both directions of changes?
2. Maybe add a `CompoundUpdate` or similar that applies multiple updates in a single migration. This might be more complex than it seems though if the migration executor and/or migration status information assume that migrations are atomic.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。