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 摘要。