Move migrations around

This commit is contained in:
Tobias Reisinger 2023-11-23 03:35:40 +01:00
parent d5583e86bc
commit e419923939
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 3 additions and 2 deletions
emgauwa-lib/src/db

View file

@ -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");