generated from pricelees/issue-pr-template
refactor: schema에서 index 생성 코드 제거 및 region의 초기 데이터가 정의된 region-data.sql 추가
This commit is contained in:
parent
c9a43491b8
commit
78c4b6adf8
@ -17,7 +17,9 @@ spring:
|
|||||||
password:
|
password:
|
||||||
sql:
|
sql:
|
||||||
init:
|
init:
|
||||||
|
mode: always
|
||||||
schema-locations: classpath:schema/schema-h2.sql
|
schema-locations: classpath:schema/schema-h2.sql
|
||||||
|
data-locations: classpath:schema/region-data.sql
|
||||||
|
|
||||||
security:
|
security:
|
||||||
jwt:
|
jwt:
|
||||||
|
|||||||
2988
src/main/resources/schema/region-data.sql
Normal file
2988
src/main/resources/schema/region-data.sql
Normal file
File diff suppressed because it is too large
Load Diff
@ -5,9 +5,8 @@ create table if not exists region (
|
|||||||
dong_code varchar(5) not null ,
|
dong_code varchar(5) not null ,
|
||||||
sido_name varchar(20) not null,
|
sido_name varchar(20) not null,
|
||||||
sigungu_name varchar(20) not null,
|
sigungu_name varchar(20) not null,
|
||||||
dong_name varchar(20) not null,
|
dong_name varchar(20) not null
|
||||||
)
|
);
|
||||||
create index idx_region_sido_sigungu_dong ON region(sido_code, sigungu_code)
|
|
||||||
|
|
||||||
create table if not exists members (
|
create table if not exists members (
|
||||||
member_id bigint primary key,
|
member_id bigint primary key,
|
||||||
|
|||||||
@ -5,9 +5,8 @@ create table if not exists region (
|
|||||||
dong_code varchar(5) not null ,
|
dong_code varchar(5) not null ,
|
||||||
sido_name varchar(20) not null,
|
sido_name varchar(20) not null,
|
||||||
sigungu_name varchar(20) not null,
|
sigungu_name varchar(20) not null,
|
||||||
dong_name varchar(20) not null,
|
dong_name varchar(20) not null
|
||||||
)
|
);
|
||||||
create index idx_region_sido_sigungu_dong ON region(sido_code, sigungu_code)
|
|
||||||
|
|
||||||
create table if not exists members
|
create table if not exists members
|
||||||
(
|
(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user