refactor: schema에서 index 생성 코드 제거 및 region의 초기 데이터가 정의된 region-data.sql 추가

This commit is contained in:
이상진 2025-08-10 14:30:04 +09:00
parent c9a43491b8
commit 78c4b6adf8
4 changed files with 2994 additions and 6 deletions

View File

@ -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:

File diff suppressed because it is too large Load Diff

View File

@ -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,

View File

@ -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
( (