Skip to content

Triggers #1294

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

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

Triggers #1294

wants to merge 5 commits into from

Conversation

dsyers
Copy link

@dsyers dsyers commented Jul 4, 2025

Like many other people there is a definte use case for things like a history of migrations, among other things.

So after seeing the other requests on here I have come up with a way of emitting triggers that can be used to add any additional functionality that people may require. These triggers do not affect the running of the CLI and are for use by people wanting to extend functionality.

I have added an example for MySQL in the file database/mysql/examples/triggers/main.go

In migrate.go I have also added an Options struct to allow for easy extensability in future - maybe this should be its own PR?

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