From 415eac7fc84403d873db04553d46eb9f42f221c2 Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Fri, 10 Jan 2020 14:32:16 +0100 Subject: [PATCH] FIX #12091 TIME 0:05 set sequence in data_fr sql --- sql/data_fr.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/data_fr.sql b/sql/data_fr.sql index c6077cb7234..6edf576b484 100755 --- a/sql/data_fr.sql +++ b/sql/data_fr.sql @@ -580,7 +580,7 @@ INSERT INTO list_templates_items (list_template_id, item_id, item_type, item_mod INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('ELUS', 'Ensemble des élus', 'ELUS:Ensemble des élus', 'Y', '', '', '', '', '', '', 'support@maarch.fr', '', 'VILLE', 'Direction'); INSERT INTO entities (entity_id, entity_label, short_label, enabled, adrs_1, adrs_2, adrs_3, zipcode, city, country, email, business_id, parent_entity_id, entity_type) VALUES ('CCAS', 'Centre Communal d''Action Sociale', 'Centre Communal d''Action Sociale', 'Y', '', '', '', '', '', '', 'support@maarch.fr', '', '', 'Direction'); -ALTER SEQUENCE list_templates_id_seq RESTART WITH 19; +SELECT setval('list_templates_id_seq', (SELECT max(id)+1 FROM list_templates), false); -- Create BASKETS TRUNCATE TABLE baskets; -- GitLab