From 100a6bf04cd05ed21a92f559afd4b291f2dfff3b Mon Sep 17 00:00:00 2001
From: Laurent Giovannoni <laurent.giovannoni@maarch.org>
Date: Tue, 27 Feb 2018 16:59:06 +0100
Subject: [PATCH] FIX pb with migration sql if do it twice

---
 sql/develop.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/develop.sql b/sql/develop.sql
index a5c64e27ba2..fb53bbb5bc9 100755
--- a/sql/develop.sql
+++ b/sql/develop.sql
@@ -375,7 +375,7 @@ DROP TABLE IF EXISTS groupbasket_difflist_roles;
 /*LISTMODELS*/
 ALTER TABLE listmodels DROP COLUMN IF EXISTS listmodel_type;
 ALTER TABLE listmodels DROP COLUMN IF EXISTS coll_id;
-ALTER TABLE listmodels ADD COLUMN id serial NOT NULL;
+ALTER TABLE listmodels ADD  COLUMN IF NOT EXISTS id serial NOT NULL;
 UPDATE listmodels SET title = description WHERE title = '' OR title ISNULL;
 
 -- ************************************************************************* --
-- 
GitLab