From 48033a0ebd48a67cbd0024e7778527c9eafd22ee Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Wed, 20 Oct 2021 11:55:53 -0300 Subject: [PATCH] Ensure all permissions are created --- server/startup/migrations/index.ts | 1 + server/startup/migrations/v241.ts | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 server/startup/migrations/v241.ts diff --git a/server/startup/migrations/index.ts b/server/startup/migrations/index.ts index d86bab89330c..d9e87bca7e54 100644 --- a/server/startup/migrations/index.ts +++ b/server/startup/migrations/index.ts @@ -64,4 +64,5 @@ import './v237'; import './v238'; import './v239'; import './v240'; +import './v241'; import './xrun'; diff --git a/server/startup/migrations/v241.ts b/server/startup/migrations/v241.ts new file mode 100644 index 000000000000..83f704924218 --- /dev/null +++ b/server/startup/migrations/v241.ts @@ -0,0 +1,9 @@ +import { addMigration } from '../../lib/migrations'; +import { upsertPermissions } from '../../../app/authorization/server/functions/upsertPermissions'; + +addMigration({ + version: 241, + up() { + upsertPermissions(); + }, +});