Skip to content
Snippets Groups Projects
Verified Commit 100a6bf0 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FIX pb with migration sql if do it twice

parent 58b910c4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
  • Florian Azizian @florian.azizian ·

    IF NOT EXISTS ne fonctionne pas sur toutes les versions de postgres (9.3 par exemple)

  • Please register or sign in to reply
UPDATE listmodels SET title = description WHERE title = '' OR title ISNULL;
-- ************************************************************************* --
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment