chore: fix migration miss (#321)
This commit is contained in:
parent
05c1b7b2db
commit
44d2a6809f
|
|
@ -355,6 +355,7 @@ async fn get_connection_pool(setting: &DatabaseSetting) -> Result<PgPool, Error>
|
||||||
|
|
||||||
async fn migrate(pool: &PgPool) -> Result<(), Error> {
|
async fn migrate(pool: &PgPool) -> Result<(), Error> {
|
||||||
sqlx::migrate!("./migrations")
|
sqlx::migrate!("./migrations")
|
||||||
|
.set_ignore_missing(true)
|
||||||
.run(pool)
|
.run(pool)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| anyhow::anyhow!("Failed to run migrations: {}", e))
|
.map_err(|e| anyhow::anyhow!("Failed to run migrations: {}", e))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue