Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: dull migration

Louis Beaumontf69ae2efaa90
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index f96d195f8..49195a364 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.13.6"
+version = "0.13.7"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-server/src/db.rs b/screenpipe-server/src/db.rs
index 1db651e9b..e02cd006c 100644
--- a/screenpipe-server/src/db.rs
+++ b/screenpipe-server/src/db.rs
@@ -239,8 +239,18 @@ impl DatabaseManager {
}
async fn run_migrations(pool: &SqlitePool) -> Result<(), sqlx::Error> {
- sqlx::migrate!("./src/migrations").run(pool).await?;
- Ok(())
+ match sqlx::migrate!("./src/migrations").run(pool).await {
+ Ok(_) => Ok(()),
+ Err(e) => {
+ // Check if it's a version mismatch for our specific migration
+ if e.to_string().contains("20241110041538") {
+ debug!("ignoring known migration mismatch for 20241110041538");
+ Ok(())
+ } else {
+ Err(e.into())
+ }
+ }
+ }
}
pub async fn insert_audio_chunk(&self, file_path: &str) -> Result<i64, sqlx::Error> {