v0.9.34 label changes

This commit is contained in:
2026-03-16 11:06:55 -04:00
parent 5f50fa74df
commit 28ae533b0e
6 changed files with 15 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "jama-backend",
"version": "0.9.33",
"version": "0.9.34",
"description": "TeamChat backend server",
"main": "src/index.js",
"scripts": {

View File

@@ -316,6 +316,10 @@ function initDb() {
db.exec("ALTER TABLE groups ADD COLUMN is_multi_group INTEGER NOT NULL DEFAULT 0");
console.log('[DB] Migration: added is_multi_group column to groups');
} catch (e) { /* already exists */ }
// Back-fill is_multi_group for any existing multi-group DM groups
try {
db.exec("UPDATE groups SET is_multi_group = 1 WHERE id IN (SELECT dm_group_id FROM multi_group_dms WHERE dm_group_id IS NOT NULL)");
} catch (e) { /* ignore */ }
// Migration: user_groups and user_group_members tables
try {