mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
fix: add missing index on Logins.email column
This commit is contained in:
parent
4b06bf95f5
commit
9fbdafd7de
@ -1,4 +1,4 @@
|
||||
import {BaseEntity, Column, Entity, JoinColumn, ManyToOne, PrimaryColumn} from "typeorm";
|
||||
import {BaseEntity, Column, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn} from "typeorm";
|
||||
|
||||
import {User} from "./User";
|
||||
|
||||
@ -9,6 +9,7 @@ export class Login extends BaseEntity {
|
||||
public id: number;
|
||||
|
||||
// This is the normalized email address we use for equality and indexing.
|
||||
@Index()
|
||||
@Column({type: String})
|
||||
public email: string;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user