google / google/python-spanner-orm

Make migrations a bit less tedious to write.

オープン
#115 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。