-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Build fails when migration is not applied #1101
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
Comments
This is a known issue, the Closing as duplicate of #681 |
thread 'main' panicked at 'Unable to run the migrations.: VersionMismatch(20230902000042)', src/main.rs:24:53 |
I am using the
migrate!
andquery!
macros in my application. However, sincequery!
checks the database before building, it will error witherror returned from database: permission denied for table users
if migrations aren't applied.However, if I apply migrations with
sqlx migrate run
, then when running the application themigrate!
macro will fail with this:So, are
query!
andmigrate!
mutually exclusive?The text was updated successfully, but these errors were encountered: