gristlabs_grist-core/app/gen-server/migration/1729754662550-LoginsEmailIndex.ts

17 lines
469 B
TypeScript
Raw Normal View History

import {MigrationInterface, QueryRunner, TableIndex} from "typeorm";
export class LoginsEmailsIndex1729754662550 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createIndex("logins", new TableIndex({
name: "logins__email",
columnNames: ["email"]
}));
}
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.dropIndex("logins", "logins__email");
}
}