feat: release chat and mindspace UI updates
This commit is contained in:
@@ -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)`);
|
||||
|
||||
Reference in New Issue
Block a user