feat: release chat and mindspace UI updates

This commit is contained in:
john
2026-06-27 21:57:21 +08:00
parent c924b2bb77
commit 8264e71f9e
24 changed files with 2042 additions and 209 deletions
+7
View File
@@ -203,6 +203,13 @@ export async function migrateSchema(pool) {
}
}
if (!(await columnExists(pool, 'h5_session_snapshots', 'display_title'))) {
await pool.query(
`ALTER TABLE h5_session_snapshots
ADD COLUMN display_title VARCHAR(512) NOT NULL DEFAULT '' AFTER name`,
);
}
await pool.query(`UPDATE h5_users SET slug = username WHERE slug IS NULL OR slug = ''`);
if (!(await indexExists(pool, 'h5_users', 'uq_h5_users_slug'))) {
await pool.query(`ALTER TABLE h5_users ADD UNIQUE KEY uq_h5_users_slug (slug)`);