forked from projectmoon/tenebrous-dicebot
Add migration to remove room state management tables.
This commit is contained in:
parent
395753e8a9
commit
97be5d5ccb
|
@ -0,0 +1,10 @@
|
||||||
|
use barrel::backend::Sqlite;
|
||||||
|
use barrel::{types, Migration};
|
||||||
|
|
||||||
|
pub fn migration() -> String {
|
||||||
|
let mut m = Migration::new();
|
||||||
|
|
||||||
|
m.drop_table_if_exists("room_info");
|
||||||
|
m.drop_table_if_exists("room_users");
|
||||||
|
m.make::<Sqlite>()
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
use futures::stream::{self, StreamExt, TryStreamExt};
|
use futures::stream::{self, StreamExt, TryStreamExt};
|
||||||
use log::error;
|
use log::error;
|
||||||
use matrix_sdk::{events::room::message::NoticeMessageEventContent, room::Joined, StoreError};
|
use matrix_sdk::{events::room::message::NoticeMessageEventContent, room::Joined};
|
||||||
use matrix_sdk::{
|
use matrix_sdk::{
|
||||||
events::room::message::{InReplyTo, Relation},
|
events::room::message::{InReplyTo, Relation},
|
||||||
events::room::message::{MessageEventContent, MessageType},
|
events::room::message::{MessageEventContent, MessageType},
|
||||||
|
|
Loading…
Reference in New Issue