FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make migrations a bit less tedious to write. · Issue #115 · google/python-spanner-orm · GitHub

Make migrations a bit less tedious to write. #115

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL