Skip to content

Commit

Permalink
Fix jsonb concatenation in down migration
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-white committed Feb 15, 2024
1 parent 88d9936 commit 151500d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/migrations/20190917-01-cleanup-app-user-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const up = async (db) => {

const down = async (db) => {
await db.raw("update roles set system = 'app_user' where system = 'app-user';");
await db.raw("update roles set verbs = verbs + 'form.list' where system = 'app_user';");
await db.raw(`update roles set verbs = verbs || '["form.list"]'::jsonb where system = 'app_user';`);
};

module.exports = { up, down };
Expand Down

0 comments on commit 151500d

Please sign in to comment.