-
Notifications
You must be signed in to change notification settings - Fork 120
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
Pure go data migrations require empty cql file #101
Comments
mmatczuk
added a commit
that referenced
this issue
Dec 2, 2020
…ng a CQL file This patch adds a new migration event type InMigration that it triggered by adding `-- DO <name>;` comment in a CQL file. Fixes #101
mmatczuk
added a commit
that referenced
this issue
Dec 2, 2020
…ng a CQL file This patch adds a new migration event type InMigration that it triggered by adding `-- DO <name>;` comment in a CQL file. Fixes #101
mmatczuk
added a commit
that referenced
this issue
Dec 3, 2020
…ng a CQL file This patch adds a new migration event type InMigration that it triggered by adding `-- CALL <name>;` comment in a CQL file. Fixes #101
mmatczuk
added a commit
that referenced
this issue
Dec 3, 2020
This patch adds a new migration event type CallComment that it triggered by adding `-- CALL <name>;` comment in a CQL file. Fixes #101
mmatczuk
added a commit
that referenced
this issue
Dec 3, 2020
This patch adds a new migration event type CallComment that it triggered by adding `-- CALL <name>;` comment in a CQL file. Fixes #101
mmatczuk
added a commit
that referenced
this issue
Dec 3, 2020
This patch adds a new migration event type CallComment that it triggered by adding `-- CALL <name>;` comment in a CQL file. Fixes #101
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CQL files are needed to create migrations. In situations where go migration code is needed to create data only migrations, CQL file becomes superficial.
Workaround for this is to use empty file and attach go code execution as callback. But empty CQL file is not accepted so workaround for this is to use some read only statement in the CQL file to make sure go callback is executed.
This all feel kinda hackish and should probably be given consideration in the future.
The text was updated successfully, but these errors were encountered: