Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: remove blanket exception handler in schema upgrade, silence non-TTY output

Adam Eivy03d8e34860c7
diff --git a/scripts/setup-db.js b/scripts/setup-db.js
index 6b41006579..14f1afdb8a 100644
--- a/scripts/setup-db.js
+++ b/scripts/setup-db.js
@@ -101,11 +101,8 @@ function getDockerHints(issue) {
// Prompt user to continue without Docker (TTY only)
function promptContinue(message, hint) {
return new Promise((resolve) => {
- // Non-TTY (CI, piped scripts) — skip silently
+ // Non-TTY (CI, piped scripts) — continue without prompting
if (!process.stdin.isTTY) {
- console.log(`⏭️ ${message}`);
- console.log(` ${hint}`);
- console.log(' Memory system will use file-based JSON storage');
resolve(true);
return;
}
diff --git a/server/scripts/init-db.sql b/server/scripts/init-db.sql
index 4df4932818..3dff702e30 100644
--- a/server/scripts/init-db.sql
+++ b/server/scripts/init-db.sql
@@ -30,10 +30,7 @@ CREATE TABLE IF NOT EXISTS memories (
);
-- Schema upgrades: add columns that may not exist on older installs
-DO $$ BEGIN
- ALTER TABLE memories ADD COLUMN IF NOT EXISTS sync_sequence BIGSERIAL;
-EXCEPTION WHEN others THEN NULL;
-END $$;
+ALTER TABLE memories ADD COLUMN IF NOT EXISTS sync_sequence BIGSERIAL;
-- HNSW index for fast vector similarity search (O(log n) instead of O(n))
CREATE INDEX IF NOT EXISTS idx_memories_embedding