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

Allow running Golang based post migration steps #1253

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

guggero
Copy link

@guggero guggero commented Mar 28, 2025

This is an alternative approach to #932.
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 March 28, 2025 12:50
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.
@coveralls
Copy link

Coverage Status

coverage: 56.417% (+0.1%) from 56.319%
when pulling 0e91936 on guggero:post-migrate-exec
into 604248c on golang-migrate:master.

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