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

Remove gormigrate helper and replace with our own #4242

Merged
merged 2 commits into from
Apr 20, 2021
Merged

Conversation

samsondav
Copy link
Collaborator

gormigrate has the issue whereby its impossible to disable transactions for
a single migration. It is simple enough to simply use our own custom
code instead, and implement this feature.

@github-actions
Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@samsondav samsondav force-pushed the chore/ch7191 branch 5 times, most recently from 1bb9419 to 29f412c Compare April 19, 2021 11:58
connorwstein
connorwstein previously approved these changes Apr 19, 2021
Migrate MigrateFunc
// Rollback will be executed on rollback. Can be nil.
Rollback RollbackFunc
// DisableDDL disables wrapping the migration in a transaction. Useful in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Wouldn't just DisableTransaction be more clear? Likewise for the xxxNoDDL - could just xxxNoTransaction or xxxNoTx

connorwstein
connorwstein previously approved these changes Apr 19, 2021
gormigrate has the issue whereby its impossible to disable transactions for
a single migration. It is simple enough to simply use our own custom
code instead, and implement this feature.
@samsondav samsondav merged commit 9c26e3e into develop Apr 20, 2021
@samsondav samsondav deleted the chore/ch7191 branch April 20, 2021 14:35
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.

2 participants