diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2024-12-31 12:24:46 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2024-12-31 12:24:46 +0100 |
| commit | 4b1f7fec1cf9d427234ff5bded79a6d18d5c88ce (patch) | |
| tree | 2d610e7f37b23193236ca323db4e77aa690b3d1a | |
| parent | 48e199eff5fca8f5e4aa71a4091d3ae7acc82b9b (diff) | |
Rename migration so its actually picked up
Must be <version>_<description>.sql.
| -rw-r--r-- | server/migrations/1_initial_eyeballs.sql (renamed from server/migrations/eyeballs.sql) | 0 | ||||
| -rw-r--r-- | server/src/main.rs | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/server/migrations/eyeballs.sql b/server/migrations/1_initial_eyeballs.sql index aeb1470..aeb1470 100644 --- a/server/migrations/eyeballs.sql +++ b/server/migrations/1_initial_eyeballs.sql diff --git a/server/src/main.rs b/server/src/main.rs index be5bb77..54ad279 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -576,7 +576,7 @@ async fn review( async fn run_migrations(rocket: Rocket<Build>) -> fairing::Result { match Db::fetch(&rocket) { - Some(db) => match sqlx::migrate!("./migrations").run(&**db).await { + Some(db) => match sqlx::migrate!().run(&**db).await { Ok(_) => Ok(rocket), Err(e) => { error!("Failed to initialize database: {}", e); |
