From 349826e87fdb03a9f378422ecfac83d42bb5a376 Mon Sep 17 00:00:00 2001 From: Tzachi Shirazi Date: Tue, 30 Aug 2022 16:12:37 +0300 Subject: [PATCH] fix: Fix credentials_entity table migration for mysql (#3979) Fixed table not found --- .../migrations/mysqldb/1646992772331-CreateUserManagement.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts b/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts index 004aae18e80fd..799227648a621 100644 --- a/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts +++ b/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts @@ -147,7 +147,7 @@ export class CreateUserManagement1646992772331 implements MigrationInterface { ); await queryRunner.query( - `INSERT INTO ${tablePrefix}shared_credentials (createdAt, updatedAt, roleId, userId, credentialsId) SELECT NOW(), NOW(), '${credentialOwnerRole[0].insertId}', '${ownerUserId}', id FROM ${tablePrefix} credentials_entity`, + `INSERT INTO ${tablePrefix}shared_credentials (createdAt, updatedAt, roleId, userId, credentialsId) SELECT NOW(), NOW(), '${credentialOwnerRole[0].insertId}', '${ownerUserId}', id FROM ${tablePrefix}credentials_entity`, ); await queryRunner.query(