chore: ADD LoginsEmailsIndex migration to tests

This commit is contained in:
Grégoire Cutzach 2024-10-24 09:34:53 +02:00
parent f63bb15247
commit 12cfb98d65
No known key found for this signature in database
GPG Key ID: AA4155BE23C375E6
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import {MigrationInterface, QueryRunner, TableIndex} from "typeorm"; import {MigrationInterface, QueryRunner, TableIndex} from "typeorm";
export class LoginsEmailsIndex1727689195356 implements MigrationInterface { export class LoginsEmailsIndex1729754662550 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> { public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createIndex("logins", new TableIndex({ await queryRunner.createIndex("logins", new TableIndex({

View File

@ -47,6 +47,8 @@ import {UserLastConnection1713186031023
import {ActivationEnabled1722529827161 import {ActivationEnabled1722529827161
as ActivationEnabled} from 'app/gen-server/migration/1722529827161-Activation-Enabled'; as ActivationEnabled} from 'app/gen-server/migration/1722529827161-Activation-Enabled';
import {Configs1727747249153 as Configs} from 'app/gen-server/migration/1727747249153-Configs'; 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(); const home: HomeDBManager = new HomeDBManager();
@ -56,7 +58,7 @@ const migrations = [Initial, Login, PinDocs, UserPicture, DisplayEmail, DisplayE
ExternalBilling, DocOptions, Secret, UserOptions, GracePeriodStart, ExternalBilling, DocOptions, Secret, UserOptions, GracePeriodStart,
DocumentUsage, Activations, UserConnectId, UserUUID, UserUniqueRefUUID, DocumentUsage, Activations, UserConnectId, UserUUID, UserUniqueRefUUID,
Forks, ForkIndexes, ActivationPrefs, AssistantLimit, Shares, BillingFeatures, Forks, ForkIndexes, ActivationPrefs, AssistantLimit, Shares, BillingFeatures,
UserLastConnection, ActivationEnabled, Configs]; UserLastConnection, ActivationEnabled, Configs, LoginsEmailsIndex];
// Assert that the "members" acl rule and group exist (or not). // Assert that the "members" acl rule and group exist (or not).
function assertMembersGroup(org: Organization, exists: boolean) { function assertMembersGroup(org: Organization, exists: boolean) {