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: migration issue + header issue

Louis Beaumont4809085e1b9f
diff --git a/screenpipe-app-tauri/components/header.tsx b/screenpipe-app-tauri/components/header.tsx
index 410577665..e495f87c6 100644
--- a/screenpipe-app-tauri/components/header.tsx
+++ b/screenpipe-app-tauri/components/header.tsx
@@ -45,7 +45,8 @@ export default function Header() {
const { health } = useHealthCheck();
const { settings } = useSettings();
- const isLoading = !health;
+ // const isLoading = !health;
+ const isLoading = false; // ! testing - had issue with this before
useEffect(() => {
const loadMessages = async () => {
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index f5c23fe7c..f96d195f8 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.5"
+version = "0.13.6"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-server/src/migrations/20241126220600_ensure_speaker_id_column.sql b/screenpipe-server/src/migrations/20241126220600_ensure_speaker_id_column.sql
new file mode 100644
index 000000000..f2784967e
--- /dev/null
+++ b/screenpipe-server/src/migrations/20241126220600_ensure_speaker_id_column.sql
@@ -0,0 +1,28 @@
+-- Check if the column exists and add it if it doesn't
+SELECT CASE
+ WHEN NOT EXISTS (
+ SELECT 1
+ FROM pragma_table_info('audio_transcriptions')
+ WHERE name = 'speaker_id'
+ )
+ THEN
+ 'ALTER TABLE audio_transcriptions ADD COLUMN speaker_id INTEGER REFERENCES speakers(id);'
+ ELSE
+ 'SELECT 1;'
+END as migration_sql;
+
+-- Execute the generated SQL
+WITH migration AS (
+ SELECT CASE
+ WHEN NOT EXISTS (
+ SELECT 1
+ FROM pragma_table_info('audio_transcriptions')
+ WHERE name = 'speaker_id'
+ )
+ THEN
+ 'ALTER TABLE audio_transcriptions ADD COLUMN speaker_id INTEGER REFERENCES speakers(id);'
+ ELSE
+ 'SELECT 1;'
+ END as sql_to_execute
+)
+SELECT sql_to_execute FROM migration;