Browse Source

feat(auth): add vaults user role into database

Karol Sójko 1 year ago
parent
commit
aef9e936bd
1 changed files with 13 additions and 0 deletions
  1. 13 0
      packages/auth/migrations/mysql/1694157482134-add_vaults_user.ts

+ 13 - 0
packages/auth/migrations/mysql/1694157482134-add_vaults_user.ts

@@ -0,0 +1,13 @@
+import { MigrationInterface, QueryRunner } from 'typeorm'
+
+export class AddVaultsUser1694157482134 implements MigrationInterface {
+  public async up(queryRunner: QueryRunner): Promise<void> {
+    await queryRunner.query(
+      'INSERT INTO `roles` (uuid, name, version) VALUES ("35669f45-a2d8-4172-bdab-b7b3d42044ce", "VAULTS_USER", 1)',
+    )
+  }
+
+  public async down(): Promise<void> {
+    return
+  }
+}