Skip to content

Commit

Permalink
eval-cache: actually re-create the db if migrations fail
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Jan 28, 2025
1 parent b6eaeac commit 87439ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devenv-eval-cache/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub async fn setup_db<P: AsRef<str>>(database_url: P) -> Result<SqlitePool, sqlx

// Delete the database and rerun the migrations
Sqlite::drop_database(database_url.as_ref()).await?;

Sqlite::create_database(database_url.as_ref()).await?;
sqlx::migrate!().run(&pool).await?;
}

Expand Down

0 comments on commit 87439ff

Please sign in to comment.