Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd a function to embedded_migrations! to check if migration is needed #1845
Comments
This comment has been minimized.
|
Thank you for the feature request. We're currently in the process of a cleanup of the issue tracker, and aren't currently accepting feature requests (there will be an official policy written soon, but the TL;DR is that open issues should reflect something that is a bug or on our immediate roadmap). We're happy to discuss feature requests, but the place to do so is discourse.diesel.rs, not the issue tracker. |
sgrif
closed this
Sep 11, 2018
kpcyrd
referenced this issue
Sep 12, 2018
Open
Add any_pending_migrations to `embed_migrations!` #1846
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kpcyrd commentedSep 11, 2018
It seems right now two functions are exported in the module that is generated by
embedded_migrations!:runrun_with_outputI would like to have a 3rd function, along the lines of
fn migrations_needed() -> bool, that can be used to check if migrations are available/needed.The idea is that this function can be used to determine if
embedded_migrations::runneeds to be executed and also to inform the user that migrations are going to be executed: