refactor: remove update_icons and disable_server_delete migrations

This commit is contained in:
link2xt
2025-11-27 02:03:49 +00:00
committed by l
parent 1f32c5ab40
commit a4bec7dc70
5 changed files with 6 additions and 54 deletions

View File

@@ -1,4 +1,5 @@
use super::*;
use crate::message::Message;
use crate::{EventType, test_utils::TestContext};
#[test]
@@ -179,9 +180,7 @@ async fn test_migration_flags() -> Result<()> {
// as migrations::run() was already executed on context creation,
// another call should not result in any action needed.
// this test catches some bugs where dbversion was forgotten to be persisted.
let (update_icons, disable_server_delete, recode_avatar) = migrations::run(&t, &t.sql).await?;
assert!(!update_icons);
assert!(!disable_server_delete);
let recode_avatar = migrations::run(&t, &t.sql).await?;
assert!(!recode_avatar);
info!(&t, "test_migration_flags: XXX END MARKER");