Move migrations around
This commit is contained in:
parent
d5583e86bc
commit
e419923939
5 changed files with 3 additions and 2 deletions
emgauwa-lib/src/db
|
@ -16,7 +16,7 @@ pub(crate) mod schedules;
|
|||
pub(crate) mod tag;
|
||||
pub mod types;
|
||||
|
||||
static MIGRATOR: Migrator = sqlx::migrate!(); // defaults to "./migrations"
|
||||
static MIGRATOR: Migrator = sqlx::migrate!("../migrations"); // defaults to "./migrations"
|
||||
|
||||
pub async fn run_migrations(pool: &Pool<Sqlite>) {
|
||||
info!("Running migrations");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue