v0.5.0 UI and new message rules

This commit is contained in:
2026-03-10 11:14:33 -04:00
parent d5087cd693
commit 110624c866
11 changed files with 127 additions and 16 deletions

View File

@@ -182,6 +182,19 @@ function initDb() {
console.log('[DB] Migration: added direct_peer2_id column');
} catch (e) { /* column already exists */ }
// Migration: user-customised group display names (per-user, per-group)
try {
db.exec(`
CREATE TABLE IF NOT EXISTS user_group_names (
user_id INTEGER NOT NULL,
group_id INTEGER NOT NULL,
name TEXT NOT NULL,
PRIMARY KEY (user_id, group_id)
)
`);
console.log('[DB] Migration: user_group_names table ready');
} catch (e) { console.error('[DB] user_group_names migration error:', e.message); }
console.log('[DB] Schema initialized');
return db;
}