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

Add a Bun migrator #7

Closed
peterldowns opened this issue Apr 12, 2024 · 1 comment
Closed

Add a Bun migrator #7

peterldowns opened this issue Apr 12, 2024 · 1 comment
Labels
feature feature request

Comments

@peterldowns
Copy link
Owner

Per discussion on #6, Kodergarten is using uptrace/bun for migrations. This issue is to track the addition of a Bun-compatible migrator to the project.

While Bun supports golang code migrations, the implementation will most likely only be able to support .sql-file migrations, similar to the golangmigrator. This is due to needing a hash of each migration's contents in order to correctly implement the migrator's Hash() method.

@peterldowns peterldowns added the feature feature request label Apr 12, 2024
peterldowns pushed a commit that referenced this issue Jul 15, 2024
This adds a migrator for uptrace/bun. Like
[golangmigrator](https://github.com/peterldowns/pgtestdb/tree/main/migrators/golangmigrator),
it only supports SQL file migrations as discussed in #7 .
@peterldowns
Copy link
Owner Author

Done thanks to @BrynBerkeley !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature request
Projects
None yet
Development

No branches or pull requests

1 participant