From 585935c79990ce2afec05dd96a7787eb6145543c Mon Sep 17 00:00:00 2001 From: didirus4 Date: Tue, 8 Jul 2025 03:42:03 +0300 Subject: [PATCH] fix: Impl. fix for migration 20240711194701 --- packages/app-lib/src/state/db.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/app-lib/src/state/db.rs b/packages/app-lib/src/state/db.rs index de5464c4c..14c53d811 100644 --- a/packages/app-lib/src/state/db.rs +++ b/packages/app-lib/src/state/db.rs @@ -30,6 +30,8 @@ pub(crate) async fn connect() -> crate::Result> { .connect_with(conn_options) .await?; + fix_migration_20240711194701(&pool).await?; // Patch by AstralRinth - 08.07.2025 + sqlx::migrate!().run(&pool).await?; if let Err(err) = stale_data_cleanup(&pool).await { @@ -62,3 +64,18 @@ async fn stale_data_cleanup(pool: &Pool) -> crate::Result<()> { Ok(()) } +/* +// Patch by AstralRinth - 08.07.2025 +*/ +async fn fix_migration_20240711194701(pool: &Pool) -> crate::Result<()> { + sqlx::query( + r#" + UPDATE "_sqlx_migrations" + SET checksum = X'e973512979feac07e415405291eefafc1ef0bd89454958ad66f5452c381db8679c20ffadab55194ecf6ba8ec4ca2db21' + WHERE version = '20240711194701'; + "#, + ) + .execute(pool) + .await?; + Ok(()) +}