Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Add missing update sql for 5.3.4; fix update sql 5.1-5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Jan 26, 2015
1 parent 52760cf commit a9b22d4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion update/database/ezpublish/5.2/dbupdate-5.1.0-to-5.2.0.sql
Expand Up @@ -35,7 +35,7 @@ DROP TABLE ezurl_object_link_temp;
-- the UPDATE statement below fixes that based on the language_mask of the current version.
UPDATE ezcontentobject o
SET language_mask = (
SELECT bitor(bitand(o.language_mask, 1), bitand(v.language_mask, 1))
SELECT bitor(bitand(o.language_mask, 1), (v.language_mask - bitand(v.language_mask, 1)))
FROM ezcontentobject_version v
WHERE o.id = v.contentobject_id AND o.current_version = v.version
)
Expand Down
15 changes: 15 additions & 0 deletions update/database/ezpublish/5.3/dbupdate-5.3.2-to-5.3.3.sql
@@ -0,0 +1,15 @@
UPDATE ezsite_data SET value='5.3.3' WHERE name='ezpublish-version';

UPDATE ezcontentobject_attribute
SET data_int = NULL
WHERE
data_int = 0
AND data_type_string IN ( 'ezdate', 'ezdatetime' );

UPDATE ezinfocollection_attribute
SET ezinfocollection_attribute.data_int = NULL
WHERE
ezinfocollection_attribute.contentclass_attribute_id IN (
SELECT id FROM ezcontentclass_attribute WHERE data_type_string IN ( 'ezdate', 'ezdatetime' )
)
AND ezinfocollection_attribute.data_int = 0;
4 changes: 4 additions & 0 deletions update/database/ezpublish/5.3/dbupdate-5.3.3-to-5.3.4.sql
@@ -0,0 +1,4 @@
UPDATE ezsite_data SET value='5.3.4' WHERE name='ezpublish-version';

-- See https://jira.ez.no/browse/EZP-23595 - cleanup extra lines in the ezuser_setting table
DELETE FROM ezuser_setting where user_id not in (SELECT contentobject_id FROM ezuser);

0 comments on commit a9b22d4

Please sign in to comment.