Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #3 from ezsystems/19169_duplicate_object_state_group

Fixed #19169: duplicated object state groups after changing default language
  • Loading branch information...
commit 7b53204c2d90c7008ae3fe4b836ffd3bb1795885 2 parents 05ed707 + 98d70e7
André R. authored July 09, 2012
6  update/database/ezpublish/5.0/unstable/dbupdate-4.7.0-to-5.0.0alpha1.sql
... ...
@@ -1,4 +1,10 @@
1 1
 UPDATE ezsite_data SET value='5.0.0alpha1' WHERE name='ezpublish-version';
2 2
 UPDATE ezsite_data SET value='1' WHERE name='ezpublish-release';
3 3
 
  4
+-- See http://issues.ez.no/19169
  5
+ALTER TABLE ezcobj_state_group_language ADD real_language_id integer DEFAULT 0 NOT NULL;
  6
+UPDATE ezcobj_state_group_language SET real_language_id = language_id - bitand(language_id, 1);
4 7
 
  8
+-- dropping the primary key (contentobject_state_group_id, language_id) and creating
  9
+-- the new one (contentobject_state_group_id, real_language_id) are done in the
  10
+-- PHP script after removing the duplicated entries

0 notes on commit 7b53204

Please sign in to comment.
Something went wrong with that request. Please try again.