From 02fc702d5077001e0728c6a3e4f5b7f4d10745bf Mon Sep 17 00:00:00 2001 From: HyunJunSon Date: Mon, 19 Feb 2024 19:30:16 +0900 Subject: [PATCH] =?UTF-8?q?hotfix::=20Truncate=20=EA=B5=AC=EB=AC=B8?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V1.0.4__init_washzone_table.sql | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/module-api/src/main/resources/db/migration/V1.0.4__init_washzone_table.sql b/module-api/src/main/resources/db/migration/V1.0.4__init_washzone_table.sql index bfb344db..c92337ba 100644 --- a/module-api/src/main/resources/db/migration/V1.0.4__init_washzone_table.sql +++ b/module-api/src/main/resources/db/migration/V1.0.4__init_washzone_table.sql @@ -11,6 +11,7 @@ CREATE TABLE if not exists wash_zone alter sequence wash_zone_washzone_no_seq increment by 50; +TRUNCATE wash_zone; INSERT INTO wash_zone (washZone_name, washZone_address, latitude, longitude, type, remarks) VALUES ('오아시스셀프세차장', '충북 청주시 흥덕구 서현중로35번길 51', 36.6201044081534, 127.427299069691, '실내', NULL), ('청주시민셀프세차장', '충북 청주시 상당구 용암북로120번길 15', 36.6199834136669, 127.511998444085, '실내', NULL), @@ -115,10 +116,4 @@ VALUES ('오아시스셀프세차장', '충북 청주시 흥덕구 서현중로3 ('워시보이게러지 실내셀프세차', '인천 서구 청마로 109', 37.58805814, 126.67577768941, NULL, NULL), ('마이온게러지', '경기 파주시 평화로 208 마이온게러지', 37.7712928807524, 126.758439177099, NULL, NULL), ('마이개러지카페', '경기 하남시 산곡동로 31', 37.5065820573677, 127.230560960249, NULL, NULL), - ('로얄게러지', '충북 충주시 원호암4길 26', 36.9552164638785, 127.937717481269, NULL, NULL) -ON CONFLICT (washZone_name, washZone_address) DO -UPDATE SET - latitude = EXCLUDED.latitude, - longitude = EXCLUDED.longitude, - type = EXCLUDED.type, - remarks = EXCLUDED.remarks; \ No newline at end of file + ('로얄게러지', '충북 충주시 원호암4길 26', 36.9552164638785, 127.937717481269, NULL, NULL);