diff --git a/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts b/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts index 89e94181d3..1a21170c05 100644 --- a/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts +++ b/packages/cli/src/databases/migrations/mysqldb/1646992772331-CreateUserManagement.ts @@ -154,6 +154,11 @@ export class CreateUserManagement1646992772331 implements ReversibleMigration { await queryRunner.query( `INSERT INTO ${tablePrefix}settings (\`key\`, value, loadOnStartup) VALUES ("userManagement.isInstanceOwnerSetUp", "false", 1), ("userManagement.skipInstanceOwnerSetup", "false", 1)`, ); + + await queryRunner.query(` + INSERT INTO "${tablePrefix}settings" (key, value, loadOnStartup) + VALUES ('ui.banners.v1.dismissed', 'true', true) + `); } async down({ queryRunner, tablePrefix }: MigrationContext) { diff --git a/packages/cli/src/databases/migrations/postgresdb/1646992772331-CreateUserManagement.ts b/packages/cli/src/databases/migrations/postgresdb/1646992772331-CreateUserManagement.ts index 982596e192..1a384ffe2a 100644 --- a/packages/cli/src/databases/migrations/postgresdb/1646992772331-CreateUserManagement.ts +++ b/packages/cli/src/databases/migrations/postgresdb/1646992772331-CreateUserManagement.ts @@ -133,6 +133,11 @@ export class CreateUserManagement1646992772331 implements ReversibleMigration { await queryRunner.query( `INSERT INTO ${tablePrefix}settings ("key", "value", "loadOnStartup") VALUES ('userManagement.isInstanceOwnerSetUp', 'false', true), ('userManagement.skipInstanceOwnerSetup', 'false', true)`, ); + + await queryRunner.query(` + INSERT INTO "${tablePrefix}settings" (key, value, loadOnStartup) + VALUES ('ui.banners.v1.dismissed', 'true', true) + `); } async down({ queryRunner, tablePrefix }: MigrationContext) { diff --git a/packages/cli/src/databases/migrations/sqlite/1646992772331-CreateUserManagement.ts b/packages/cli/src/databases/migrations/sqlite/1646992772331-CreateUserManagement.ts index 42ffe1d517..6a9964fa03 100644 --- a/packages/cli/src/databases/migrations/sqlite/1646992772331-CreateUserManagement.ts +++ b/packages/cli/src/databases/migrations/sqlite/1646992772331-CreateUserManagement.ts @@ -94,6 +94,11 @@ export class CreateUserManagement1646992772331 implements ReversibleMigration { INSERT INTO "${tablePrefix}settings" (key, value, loadOnStartup) values ('userManagement.isInstanceOwnerSetUp', 'false', true), ('userManagement.skipInstanceOwnerSetup', 'false', true) `); + + await queryRunner.query(` + INSERT INTO "${tablePrefix}settings" (key, value, loadOnStartup) + VALUES ('ui.banners.v1.dismissed', 'true', true) + `); } async down({ queryRunner, tablePrefix }: MigrationContext) {