mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
sqlite: add room_id index on direct_withheld_info table
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "direct_withheld_info_room_id_idx"
|
||||
ON "direct_withheld_info" ("room_id");
|
||||
@@ -291,6 +291,16 @@ async fn run_migrations(conn: &SqliteAsyncConn, version: u8) -> Result<()> {
|
||||
.await?;
|
||||
}
|
||||
|
||||
if version < 12 {
|
||||
conn.with_transaction(|txn| {
|
||||
txn.execute_batch(include_str!(
|
||||
"../migrations/crypto_store/012_withheld_code_by_room.sql"
|
||||
))?;
|
||||
txn.set_db_version(12)
|
||||
})
|
||||
.await?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user