Skip to content

Commit

Permalink
Fix EZP-19985: Unable to apply database upgrade on Postgres SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Nov 8, 2012
1 parent 0cce8ce commit b3088c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ UPDATE ezsite_data SET value='1' WHERE name='ezpublish-release';

-- See http://issues.ez.no/19169
ALTER TABLE ezcobj_state_group_language ADD real_language_id integer DEFAULT 0 NOT NULL;
UPDATE ezcobj_state_group_language SET real_language_id = language_id & ~1
UPDATE ezcobj_state_group_language SET real_language_id = language_id & ~1;

-- dropping the primary key (contentobject_state_group_id, language_id) and creating
-- the new one (contentobject_state_group_id, real_language_id) are done in the
Expand Down

0 comments on commit b3088c8

Please sign in to comment.