Skip to content

Commit

Permalink
fix: genre schema 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
somsom13 committed Sep 19, 2023
1 parent 18eaddf commit b5cd693
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
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

0 comments on commit b5cd693

Please sign in to comment.