You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running migration for the first time you get a greeting message:
❯ sqlx migrate add create_students_table
Creating migrations/20230329125012_create_students_table.sql
Congratulations on creating your first migration!
Did you know you can embed your migrations in your application binary?
On startup, after creating your database connection or pool, add:
sqlx::migrate!().run(<&your_pool OR &mut your_connection>).await?;
Note that the compiler won't pick up new migrations if no Rust source files have changed.
You can create a Cargo build script to work around this with `sqlx migrate build-script`.
See: https://docs.rs/sqlx/0.5/sqlx/macro.migrate.html
Bug Description
when running migration for the first time you get a greeting message:
the problem is that https://docs.rs/sqlx/0.5/sqlx/macro.migrate.html will be outdated at some point, maybe better use https://docs.rs/sqlx/latest/sqlx/macro.migrate.html ?
this line in the code:
sqlx/sqlx-cli/src/migrate.rs
Line 102 in 4f1ac1d
The text was updated successfully, but these errors were encountered: