From 8eed40a28104fdc50e221042178c643b1b1fd963 Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Wed, 13 Dec 2023 15:33:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E6=9D=91=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/1.4.0/data/3.clear_village.sql | 14 ++++++++++++++ .../1.4.0/data/{3_village.sql => 4_village.sql} | 10 ---------- ...village_distance.sql => 5_village_distance.sql} | 8 -------- 3 files changed, 14 insertions(+), 18 deletions(-) create mode 100644 scripts/1.4.0/data/3.clear_village.sql rename scripts/1.4.0/data/{3_village.sql => 4_village.sql} (98%) rename scripts/1.4.0/data/{4_village_distance.sql => 5_village_distance.sql} (99%) diff --git a/scripts/1.4.0/data/3.clear_village.sql b/scripts/1.4.0/data/3.clear_village.sql new file mode 100644 index 00000000..176ccb4a --- /dev/null +++ b/scripts/1.4.0/data/3.clear_village.sql @@ -0,0 +1,14 @@ +DO $$ +BEGIN + RAISE NOTICE '!!! 请注意 这将删除所有已有的村信息 9s后继续'; + PERFORM pg_sleep(9); -- 等待一小段时间 +END $$; + + +DELETE FROM "public"."village_distance" WHERE "id" > 0; + +SELECT setval('village_distance_id_seq', 1); + +DELETE FROM "public"."village" WHERE "id" > 0; + +SELECT setval('village_id_seq', 1); diff --git a/scripts/1.4.0/data/3_village.sql b/scripts/1.4.0/data/4_village.sql similarity index 98% rename from scripts/1.4.0/data/3_village.sql rename to scripts/1.4.0/data/4_village.sql index f49a4d9d..2f6a0b21 100644 --- a/scripts/1.4.0/data/3_village.sql +++ b/scripts/1.4.0/data/4_village.sql @@ -15,16 +15,6 @@ Date: 13/12/2023 11:19:37 */ - -DO $$ -BEGIN - RAISE NOTICE '!!! 请注意 这将删除所有已有的村信息 9s后继续'; - PERFORM pg_sleep(9); -- 等待一小段时间 -END $$; - -DELETE FROM "public"."village" WHERE "id" > 0; - -SELECT setval('village_id_seq', 1); -- ---------------------------- -- Records of village -- ---------------------------- diff --git a/scripts/1.4.0/data/4_village_distance.sql b/scripts/1.4.0/data/5_village_distance.sql similarity index 99% rename from scripts/1.4.0/data/4_village_distance.sql rename to scripts/1.4.0/data/5_village_distance.sql index 0b1461d8..2901e0d3 100644 --- a/scripts/1.4.0/data/4_village_distance.sql +++ b/scripts/1.4.0/data/5_village_distance.sql @@ -15,14 +15,6 @@ Date: 13/12/2023 11:21:44 */ -DO $$ -BEGIN - RAISE NOTICE '!!! 请注意 这将删除所有已有的村距离信息 9s后继续'; - PERFORM pg_sleep(9); -- 等待一小段时间 -END $$; - -DELETE FROM "public"."village_distance" WHERE "id" > 0; -SELECT setval('village_distance_id_seq', 1); -- ---------------------------- -- Records of village_distance -- ----------------------------