mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-09 21:29:06 -05:00
fix: run db migration for v9
This commit is contained in:
parent
e2de162931
commit
7c4bf5cc8f
|
@ -160,6 +160,10 @@ pub fn upgrade_db(conn: &mut PooledConnection) -> Result<()> {
|
||||||
if curr_version == 7 {
|
if curr_version == 7 {
|
||||||
curr_version = mig_7_to_8(conn)?;
|
curr_version = mig_7_to_8(conn)?;
|
||||||
}
|
}
|
||||||
|
if curr_version == 8 {
|
||||||
|
curr_version = mig_8_to_9(conn)?;
|
||||||
|
}
|
||||||
|
|
||||||
if curr_version == DB_VERSION {
|
if curr_version == DB_VERSION {
|
||||||
info!(
|
info!(
|
||||||
"All migration scripts completed successfully. Welcome to v{}.",
|
"All migration scripts completed successfully. Welcome to v{}.",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user