mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-09 21:29:06 -05:00
fix: db schema version updates correctly for v9
This commit is contained in:
parent
7c4bf5cc8f
commit
f9695bd0a9
|
@ -408,7 +408,7 @@ fn mig_8_to_9(conn: &mut PooledConnection) -> Result<usize> {
|
||||||
let upgrade_sql = r##"
|
let upgrade_sql = r##"
|
||||||
CREATE INDEX IF NOT EXISTS created_at_index ON event(created_at);
|
CREATE INDEX IF NOT EXISTS created_at_index ON event(created_at);
|
||||||
CREATE INDEX IF NOT EXISTS event_composite_index ON event(kind,created_at);
|
CREATE INDEX IF NOT EXISTS event_composite_index ON event(kind,created_at);
|
||||||
PRAGMA user_version = 8;
|
PRAGMA user_version = 9;
|
||||||
"##;
|
"##;
|
||||||
match conn.execute_batch(upgrade_sql) {
|
match conn.execute_batch(upgrade_sql) {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user