We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// User.ts @Index() @Column({ unique: true, length: 255 }) username!: string; @Index() @Column({ unique: true, length: 255, nullable: true, type: 'varchar' }) email!: string | null;
SYNC가 true일 때 unique에는 index가 내장되어 있어서 @Index를 하면 duplicate key 오류가 나오는데
@Index
duplicate key
@Column 에서 unique를 빼주거나 @Index({ unique: true }) 또는 @Index를 제거해주고 @Column({ unique: true }) 로 해야 할 것 같습니다.
@Column
@Index({ unique: true })
@Column({ unique: true })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SYNC가 true일 때
unique에는 index가 내장되어 있어서
@Index
를 하면duplicate key
오류가 나오는데@Column
에서 unique를 빼주거나@Index({ unique: true })
또는@Index
를 제거해주고@Column({ unique: true })
로 해야 할 것 같습니다.The text was updated successfully, but these errors were encountered: