-
Notifications
You must be signed in to change notification settings - Fork 8
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
[BE] feat: Flyway 적용 (#246) #334
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c7e8e29
chore: Flyway 의존성 추가
seokjin8678 820780f
chore: Flyway 설정 추가
seokjin8678 c0d79a3
chore: 서브모듈 업데이트
seokjin8678 42303e5
chore: h2 설정 제거
seokjin8678 2b9b6e2
Merge remote-tracking branch 'origin/dev' into feat/#246
seokjin8678 b8c2339
Merge remote-tracking branch 'origin/dev' into feat/#246
seokjin8678 ea5b030
feat: 최신 브랜치 반영
seokjin8678 715b0b3
feat: Admin 테이블 추가
seokjin8678 5487a1a
Merge remote-tracking branch 'origin/dev' into feat/#246
seokjin8678 b91e83f
Merge remote-tracking branch 'origin/dev' into feat/#246
seokjin8678 383616a
feat: 최신 엔티티 DDL 설정
seokjin8678 d908375
feat: submodule 업데이트
seokjin8678 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3.8" | ||
services: | ||
db: | ||
image: mysql:8.0.33 | ||
container_name: festago-local-db | ||
restart: always | ||
ports: | ||
- "13306:3306" | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: festago | ||
MYSQL_USER: festago | ||
MYSQL_PASSWORD: festago | ||
TZ: Asia/Seoul | ||
command: [ "mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_general_ci" ] | ||
Comment on lines
+1
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. h2 의 문법 문제와 dev, prod 환경과 최대한 비슷한 환경을 local 에서 구성해 보는 것도 큰 장점인 것 같네요!! |
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
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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
create table if not exists festival | ||
( | ||
id bigint not null auto_increment, | ||
created_at datetime(6), | ||
updated_at datetime(6), | ||
end_date date, | ||
name varchar(255), | ||
start_date date, | ||
thumbnail varchar(255), | ||
primary key (id) | ||
) engine InnoDB | ||
default charset = utf8mb4 | ||
collate = utf8mb4_0900_ai_ci; | ||
|
||
create table if not exists member | ||
( | ||
id bigint not null auto_increment, | ||
created_at datetime(6), | ||
updated_at datetime(6), | ||
deleted_at datetime(6), | ||
nickname varchar(255), | ||
profile_image varchar(255), | ||
social_id varchar(255), | ||
social_type varchar(255), | ||
primary key (id) | ||
) engine InnoDB | ||
default charset = utf8mb4 | ||
collate = utf8mb4_0900_ai_ci; | ||
|
||
create table if not exists member_ticket | ||
( | ||
id bigint not null auto_increment, | ||
created_at datetime(6), | ||
updated_at datetime(6), | ||
entry_state varchar(255), | ||
entry_time datetime(6), | ||
number integer not null, | ||
ticket_type varchar(255), | ||
owner_id bigint, | ||
stage_id bigint, | ||
primary key (id) | ||
) engine InnoDB | ||
default charset = utf8mb4 | ||
collate = utf8mb4_0900_ai_ci; | ||
|
||
create table if not exists stage | ||
( | ||
id bigint not null auto_increment, | ||
created_at datetime(6), | ||
updated_at datetime(6), | ||
line_up varchar(255), | ||
start_time datetime(6) not null, | ||
ticket_open_time datetime(6), | ||
festival_id bigint, | ||
primary key (id) | ||
) engine InnoDB | ||
default charset = utf8mb4 | ||
collate = utf8mb4_0900_ai_ci; | ||
|
||
create table if not exists ticket | ||
( | ||
id bigint not null auto_increment, | ||
created_at datetime(6), | ||
updated_at datetime(6), | ||
ticket_type varchar(255), | ||
stage_id bigint, | ||
primary key (id) | ||
) engine InnoDB | ||
default charset = utf8mb4 | ||
collate = utf8mb4_0900_ai_ci; | ||
|
||
create table if not exists ticket_amount | ||
( | ||
ticket_id bigint not null, | ||
created_at datetime(6), | ||
updated_at datetime(6), | ||
reserved_amount integer not null, | ||
total_amount integer not null, | ||
primary key (ticket_id) | ||
) engine InnoDB | ||
default charset = utf8mb4 | ||
collate = utf8mb4_0900_ai_ci; | ||
|
||
create table if not exists ticket_entry_time | ||
( | ||
id bigint not null auto_increment, | ||
created_at datetime(6), | ||
updated_at datetime(6), | ||
amount integer, | ||
entry_time datetime(6), | ||
ticket_id bigint, | ||
primary key (id) | ||
) engine InnoDB | ||
default charset = utf8mb4 | ||
collate = utf8mb4_0900_ai_ci; | ||
|
||
alter table member_ticket | ||
add constraint fk_member_ticket__member | ||
foreign key (owner_id) | ||
references member (id); | ||
|
||
alter table member_ticket | ||
add constraint fk_member_ticket__stage | ||
foreign key (stage_id) | ||
references stage (id); | ||
|
||
alter table stage | ||
add constraint fk_stage__festival | ||
foreign key (festival_id) | ||
references festival (id); | ||
|
||
alter table ticket | ||
add constraint fk_ticket__stage | ||
foreign key (stage_id) | ||
references stage (id); | ||
|
||
alter table ticket_amount | ||
add constraint fk_ticket_amount__ticket | ||
foreign key (ticket_id) | ||
references ticket (id); | ||
|
||
alter table ticket_entry_time | ||
add constraint fk_ticket_entry_time__ticket | ||
foreign key (ticket_id) | ||
references ticket (id); |
Submodule festago-config
updated
from fc49f7 to 35d26b
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 |
---|---|---|
|
@@ -9,6 +9,8 @@ spring: | |
hibernate: | ||
ddl-auto: create | ||
open-in-view: false | ||
flyway: | ||
enabled: false | ||
|
||
logging: | ||
level: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
내마음이 도커도커