google / google/python-spanner-orm

Make migrations a bit less tedious to write.

Đang mở
#115 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
41
Fork
17
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.