release: prepare 0629001 portal updates
This commit is contained in:
@@ -132,6 +132,11 @@ export async function migrateSchema(pool) {
|
||||
if (!(await indexExists(pool, 'h5_users', 'uq_h5_users_email'))) {
|
||||
await pool.query(`ALTER TABLE h5_users ADD UNIQUE KEY uq_h5_users_email (email)`);
|
||||
}
|
||||
if (!(await indexExists(pool, 'h5_usage_records', 'uniq_h5_usage_request_id'))) {
|
||||
await pool.query(
|
||||
`ALTER TABLE h5_usage_records ADD UNIQUE KEY uniq_h5_usage_request_id (request_id)`,
|
||||
);
|
||||
}
|
||||
|
||||
const assetForeignKeys = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user