merge rooms/short Data w/ Service; optimize queries
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0e8ae1e13e
commit
c569881b08
18 changed files with 257 additions and 262 deletions
|
@ -99,14 +99,14 @@ async fn migrate(services: &Services) -> Result<()> {
|
|||
db_lt_13(services).await?;
|
||||
}
|
||||
|
||||
if db["global"].qry("feat_sha256_media").await.is_not_found() {
|
||||
if db["global"].get(b"feat_sha256_media").await.is_not_found() {
|
||||
media::migrations::migrate_sha256_media(services).await?;
|
||||
} else if config.media_startup_check {
|
||||
media::migrations::checkup_sha256_media(services).await?;
|
||||
}
|
||||
|
||||
if db["global"]
|
||||
.qry("fix_bad_double_separator_in_state_cache")
|
||||
.get(b"fix_bad_double_separator_in_state_cache")
|
||||
.await
|
||||
.is_not_found()
|
||||
{
|
||||
|
@ -114,7 +114,7 @@ async fn migrate(services: &Services) -> Result<()> {
|
|||
}
|
||||
|
||||
if db["global"]
|
||||
.qry("retroactively_fix_bad_data_from_roomuserid_joined")
|
||||
.get(b"retroactively_fix_bad_data_from_roomuserid_joined")
|
||||
.await
|
||||
.is_not_found()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue