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

Feature request - result of migration run #41

Closed
sampbarrow opened this issue Dec 23, 2021 · 2 comments
Closed

Feature request - result of migration run #41

sampbarrow opened this issue Dec 23, 2021 · 2 comments
Labels
api Related to library's API enhancement New feature or request

Comments

@sampbarrow
Copy link

Would it be possible for the migration function to return some information about the migrations performed? Even just a count of migrations executed would be helpful (we use this to automatically drop and recreate some views that are auto-generated based on the schema - but we dont want to do this if the schema hasn't changed).

@koskimas
Copy link
Member

Sure! I can make them return a list of objects with a migration name and a status (success, error, notExecuted). notExecuted would be for migrations that should have been executed but weren't because an earlier migration failed.

@koskimas
Copy link
Member

koskimas commented Dec 28, 2021

This is now implemented in 0.13.0.

@kysely-org kysely-org deleted a comment from steida Dec 30, 2021
@igalklebanov igalklebanov added enhancement New feature or request api Related to library's API labels Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants