Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle change streams #69

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

nielm
Copy link
Collaborator

@nielm nielm commented Jan 29, 2024

Adds handline for diffing Change Streams:

Creates new change streams, drops removed change streams, and alters the FOR and OPTIONS clauses for existing change streams.

One caveat: If a change stream references a column that is being dropped (or a table that is being dropped), then the generated difference DDL will fail to apply.

Workaround - perform the change in 2 steps: alter the change stream, then drop the colums/tables

Fixes #9

Does not cope with changing change streams while underlying columns are dropped.
@nielm nielm merged commit 6c05a66 into cloudspannerecosystem:main Jan 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support For Change Streams
1 participant