-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!hotfix: V11 flyway script 수정 (#383)
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
9 changes: 5 additions & 4 deletions
9
backend/ddang/src/main/resources/db/migration/V11__create_profile_image_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
create table profile_image ( | ||
id bigint not null auto_increment, | ||
store_name varchar(255), | ||
upload_name varchar(255), | ||
primary key (id) | ||
id bigint not null auto_increment, | ||
store_name varchar(255), | ||
upload_name varchar(255), | ||
primary key (id) | ||
); | ||
|
||
alter table users drop profile_image; | ||
alter table users add profile_image_id bigint; | ||
alter table users add constraint fk_user_profile_image foreign key (profile_image_id) references profile_image (id); |