Skip to content

Allow running Golang based post migration steps #2

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

Merged
merged 2 commits into from
Apr 23, 2025

Conversation

guggero
Copy link
Member

@guggero guggero commented Apr 23, 2025

Often more complex data migrations cannot be fully expressed in SQL alone.

This PR introduces the ability to run a Golang based callback directly after a SQL based migration step was executed (and before the version is updated from dirty to clean in the migration table).

The new feature can be seen in action here: lightninglabs/taproot-assets@1b9a8cc

guggero added 2 commits April 23, 2025 17:22
This is a preparatory commit that adds the ability to add new
options to any of the constructor functions, without breaking backward
compatibility.
An actual option is going to be added in the next commit, this just
introduces the mechanism.
@guggero guggero force-pushed the fork-post-migrate-exec branch from 95c6079 to d6580fa Compare April 23, 2025 16:55
@guggero
Copy link
Member Author

guggero commented Apr 23, 2025

Review already happened here: golang-migrate#1253.

@guggero guggero merged commit d63a8ea into ll-fork Apr 23, 2025
@guggero guggero deleted the fork-post-migrate-exec branch April 23, 2025 17:00
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.

1 participant