Skip to content
New issue

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

fix: unique 조건을 걸면 자동으로 index가 생성되므로 index 데코레이터 삭제 #302

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions backend/src/member/entity/member.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
PrimaryGeneratedColumn,
CreateDateColumn,
UpdateDateColumn,
Index,
OneToMany,
} from 'typeorm';

Expand All @@ -14,7 +13,6 @@ export class Member {
@PrimaryGeneratedColumn('increment', { type: 'int' })
id: number;

@Index()
@Column({ type: 'int', unique: true, nullable: false })
github_id: number;

Expand All @@ -24,7 +22,6 @@ export class Member {
@Column({ type: 'varchar', length: 256, nullable: false })
github_image_url: string;

@Index()
@Column({ type: 'varchar', length: 39, unique: true, nullable: false })
username: string;

Expand Down
Loading