mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
chore: ADD LoginsEmailsIndex migration to tests
This commit is contained in:
parent
f63bb15247
commit
12cfb98d65
@ -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({
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user