Title: Make migrations a bit less tedious to write. · Issue #115 · google/python-spanner-orm · GitHub
Open Graph Title: Make migrations a bit less tedious to write. · Issue #115 · google/python-spanner-orm
X Title: Make migrations a bit less tedious to write. · Issue #115 · google/python-spanner-orm
Description: Ideas: 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 ...
Open Graph Description: Ideas: 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...
X Description: Ideas: 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...
Opengraph URL: https://github.com/google/python-spanner-orm/issues/115
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make migrations a bit less tedious to write.","articleBody":"Ideas:\r\n1. 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?\r\n2. 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.","author":{"url":"https://github.com/dseomn","@type":"Person","name":"dseomn"},"datePublished":"2020-12-23T17:47:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/115/python-spanner-orm/issues/115"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ce010379-47fd-58de-bec2-63d5a79b97fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BC4:318A43:1E07068:2A0A28D:697BA6A9 |
| html-safe-nonce | d5e05379828af397b816fef3ac5780d4be3cff109edb30ac01ece77b5e95ba6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkM0OjMxOEE0MzoxRTA3MDY4OjJBMEEyOEQ6Njk3QkE2QTkiLCJ2aXNpdG9yX2lkIjoiNTQ0NjQ0MDE3MDAzNzE1OTU5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85ba0cd3a412740b1f1eb9a66563fefc18a18fe8bd1ed4e12e6925058d723d15 |
| hovercard-subject-tag | issue:773956859 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/python-spanner-orm/115/issue_layout |
| twitter:image | https://opengraph.githubassets.com/185a07d91d82dfa963bcbdf801ee1d1419da9af17ee551dc7b0d50d225d92e09/google/python-spanner-orm/issues/115 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/185a07d91d82dfa963bcbdf801ee1d1419da9af17ee551dc7b0d50d225d92e09/google/python-spanner-orm/issues/115 |
| og:image:alt | Ideas: 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dseomn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ba9ae7380317898f1b98f4cf41e78605ff2d68007cb4db4e46bdaf7e9423d2e |
| turbo-cache-control | no-preview |
| go-import | github.com/google/python-spanner-orm git https://github.com/google/python-spanner-orm.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 155757264 |
| octolytics-dimension-repository_nwo | google/python-spanner-orm |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 155757264 |
| octolytics-dimension-repository_network_root_nwo | google/python-spanner-orm |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d52dd9b71f0e5da9cfd694fb2faae78a81d8e46f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width