From b41c1285027e25fa2c1c9763a293800f86a18cfd Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Mon, 25 Nov 2019 18:09:08 +0100 Subject: [PATCH] FIX sql exploit files --- sql/delete_all_ressources.sql | 5 +---- sql/index_creation.sql | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sql/delete_all_ressources.sql b/sql/delete_all_ressources.sql index d25a4e60b64..fa72af7c557 100755 --- a/sql/delete_all_ressources.sql +++ b/sql/delete_all_ressources.sql @@ -46,9 +46,6 @@ ALTER SEQUENCE adr_letterbox_id_seq restart WITH 1; TRUNCATE TABLE adr_attachments; ALTER SEQUENCE adr_attachments_id_seq restart WITH 1; -TRUNCATE TABLE adr_attachments_version; -ALTER SEQUENCE adr_attachments_version_id_seq restart WITH 1; - TRUNCATE TABLE res_linked; TRUNCATE TABLE res_mark_as_read; @@ -56,7 +53,7 @@ TRUNCATE TABLE saved_queries; TRUNCATE TABLE lc_stack; TRUNCATE TABLE tags; -ALTER SEQUENCE tag_id_seq restart WITH 1; +ALTER SEQUENCE tags_id_seq restart WITH 1; TRUNCATE TABLE tags_entities; diff --git a/sql/index_creation.sql b/sql/index_creation.sql index b850272c025..747ebfee4dc 100755 --- a/sql/index_creation.sql +++ b/sql/index_creation.sql @@ -19,7 +19,6 @@ CREATE INDEX res_att_external_id_idx ON res_attachments (external_id); -- listinstance CREATE INDEX res_id_listinstance_idx ON listinstance (res_id); -CREATE INDEX listinstance_coll_id_idx ON listinstance (coll_id); CREATE INDEX sequence_idx ON listinstance (sequence); CREATE INDEX item_id_idx ON listinstance (item_id); CREATE INDEX item_type_idx ON listinstance (item_type); -- GitLab