ci: Fix v1 banner migration (no-changelog) (#6628)

* fix(cli): Fix v1 banner migration

* Update packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
This commit is contained in:
OlegIvaniv 2023-07-10 11:10:44 +02:00 committed by GitHub
parent bf351243df
commit 9460bdd3be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View file

@ -155,10 +155,9 @@ export class CreateUserManagement1646992772331 implements ReversibleMigration {
`INSERT INTO ${tablePrefix}settings (\`key\`, value, loadOnStartup) VALUES ("userManagement.isInstanceOwnerSetUp", "false", 1), ("userManagement.skipInstanceOwnerSetup", "false", 1)`, `INSERT INTO ${tablePrefix}settings (\`key\`, value, loadOnStartup) VALUES ("userManagement.isInstanceOwnerSetUp", "false", 1), ("userManagement.skipInstanceOwnerSetup", "false", 1)`,
); );
await queryRunner.query(` await queryRunner.query(
INSERT INTO "${tablePrefix}settings" (key, value, loadOnStartup) `INSERT INTO ${tablePrefix}settings (\`key\`, value, loadOnStartup) VALUES ("ui.banners.v1.dismissed", "true", 1)`,
VALUES ('ui.banners.v1.dismissed', 'true', true) );
`);
} }
async down({ queryRunner, tablePrefix }: MigrationContext) { async down({ queryRunner, tablePrefix }: MigrationContext) {

View file

@ -134,10 +134,9 @@ export class CreateUserManagement1646992772331 implements ReversibleMigration {
`INSERT INTO ${tablePrefix}settings ("key", "value", "loadOnStartup") VALUES ('userManagement.isInstanceOwnerSetUp', 'false', true), ('userManagement.skipInstanceOwnerSetup', 'false', true)`, `INSERT INTO ${tablePrefix}settings ("key", "value", "loadOnStartup") VALUES ('userManagement.isInstanceOwnerSetUp', 'false', true), ('userManagement.skipInstanceOwnerSetup', 'false', true)`,
); );
await queryRunner.query(` await queryRunner.query(
INSERT INTO "${tablePrefix}settings" (key, value, loadOnStartup) `INSERT INTO ${tablePrefix}settings ("key", "value", "loadOnStartup") VALUES ('ui.banners.v1.dismissed', 'true', true)`,
VALUES ('ui.banners.v1.dismissed', 'true', true) );
`);
} }
async down({ queryRunner, tablePrefix }: MigrationContext) { async down({ queryRunner, tablePrefix }: MigrationContext) {