From 12cfb98d6591f01ebe1bfce07f532dcc0c86f6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Cutzach?= Date: Thu, 24 Oct 2024 09:34:53 +0200 Subject: [PATCH] chore: ADD LoginsEmailsIndex migration to tests --- ...-LoginsEmailIndex.ts => 1729754662550-LoginsEmailIndex.ts} | 2 +- test/gen-server/migrations.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename app/gen-server/migration/{1727689195356-LoginsEmailIndex.ts => 1729754662550-LoginsEmailIndex.ts} (86%) diff --git a/app/gen-server/migration/1727689195356-LoginsEmailIndex.ts b/app/gen-server/migration/1729754662550-LoginsEmailIndex.ts similarity index 86% rename from app/gen-server/migration/1727689195356-LoginsEmailIndex.ts rename to app/gen-server/migration/1729754662550-LoginsEmailIndex.ts index 6861bb3d..3435ec99 100644 --- a/app/gen-server/migration/1727689195356-LoginsEmailIndex.ts +++ b/app/gen-server/migration/1729754662550-LoginsEmailIndex.ts @@ -1,6 +1,6 @@ import {MigrationInterface, QueryRunner, TableIndex} from "typeorm"; -export class LoginsEmailsIndex1727689195356 implements MigrationInterface { +export class LoginsEmailsIndex1729754662550 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { await queryRunner.createIndex("logins", new TableIndex({ diff --git a/test/gen-server/migrations.ts b/test/gen-server/migrations.ts index fc608d9e..2795fd25 100644 --- a/test/gen-server/migrations.ts +++ b/test/gen-server/migrations.ts @@ -47,6 +47,8 @@ import {UserLastConnection1713186031023 import {ActivationEnabled1722529827161 as ActivationEnabled} from 'app/gen-server/migration/1722529827161-Activation-Enabled'; import {Configs1727747249153 as Configs} from 'app/gen-server/migration/1727747249153-Configs'; +import {LoginsEmailsIndex1729754662550 + as LoginsEmailsIndex} from 'app/gen-server/migration/1729754662550-LoginsEmailIndex'; const home: HomeDBManager = new HomeDBManager(); @@ -56,7 +58,7 @@ const migrations = [Initial, Login, PinDocs, UserPicture, DisplayEmail, DisplayE ExternalBilling, DocOptions, Secret, UserOptions, GracePeriodStart, DocumentUsage, Activations, UserConnectId, UserUUID, UserUniqueRefUUID, Forks, ForkIndexes, ActivationPrefs, AssistantLimit, Shares, BillingFeatures, - UserLastConnection, ActivationEnabled, Configs]; + UserLastConnection, ActivationEnabled, Configs, LoginsEmailsIndex]; // Assert that the "members" acl rule and group exist (or not). function assertMembersGroup(org: Organization, exists: boolean) {