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

Hotfix: genre schema 수정 #423

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion backend/src/main/resources/dev/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ create table if not exists song
length integer not null,
video_id varchar(20) not null,
album_cover_url text not null,
genre varchar(20),
genre varchar(255) check (genre in ('BALLAD', 'DANCE', 'HIPHOP', 'RHYTHM_AND_BLUES', 'INDIE', 'ROCK_METAL', 'TROT', 'FOLK_BLUES', 'POP', 'JAZZ', 'CLASSIC', 'J_POP', 'EDM', 'ETC')),
created_at timestamp(6) not null,
primary key (id)
);
Expand Down
3 changes: 2 additions & 1 deletion backend/src/main/resources/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@ alter table killing_part
alter column like_count set default 0;
alter table member
add column created_at timestamp(6) not null;
alter table song add column genre varchar(20);
alter table song add column genre varchar(255) check
(genre in ('BALLAD', 'DANCE', 'HIPHOP', 'RHYTHM_AND_BLUES', 'INDIE', 'ROCK_METAL', 'TROT', 'FOLK_BLUES', 'POP', 'JAZZ', 'CLASSIC', 'J_POP', 'EDM', 'ETC'));
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ create table if not exists song
length integer not null,
video_id varchar(20) not null,
album_cover_url text not null,
genre varchar(20),
genre varchar(255) check (genre in ('BALLAD', 'DANCE', 'HIPHOP', 'RHYTHM_AND_BLUES', 'INDIE', 'ROCK_METAL', 'TROT', 'FOLK_BLUES', 'POP', 'JAZZ', 'CLASSIC', 'J_POP', 'EDM', 'ETC')),
created_at timestamp(6) not null,
primary key (id)
);
Expand Down
2 changes: 1 addition & 1 deletion backend/src/test/resources/schema-test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ create table if not exists song
length integer not null,
video_id varchar(20) not null,
album_cover_url text not null,
genre varchar(20),
genre varchar(255) check (genre in ('BALLAD', 'DANCE', 'HIPHOP', 'RHYTHM_AND_BLUES', 'INDIE', 'ROCK_METAL', 'TROT', 'FOLK_BLUES', 'POP', 'JAZZ', 'CLASSIC', 'J_POP', 'EDM', 'ETC')),
created_at timestamp(6) not null,
primary key (id)
);
Expand Down
Loading