fix: db schema version updates correctly for v9

This commit is contained in:
Greg Heartsfield 2022-12-16 10:01:49 -06:00
parent 7c4bf5cc8f
commit f9695bd0a9

View File

@ -408,7 +408,7 @@ fn mig_8_to_9(conn: &mut PooledConnection) -> Result<usize> {
let upgrade_sql = r##"
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);
PRAGMA user_version = 8;
PRAGMA user_version = 9;
"##;
match conn.execute_batch(upgrade_sql) {
Ok(()) => {