Skip to content

Commit

Permalink
Fix EZP-23595: update sql to cleanup extra rows in ezuser_setting table
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Inacio committed Nov 7, 2014
1 parent c91fac3 commit 93be9a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions update/database/mysql/5.4/dbupdate-5.3.0-to-5.4.0.sql
Expand Up @@ -16,3 +16,6 @@ WHERE
ezcontentclass_attribute.id = ezinfocollection_attribute.contentclass_attribute_id
AND ezinfocollection_attribute.data_int = 0
AND ezcontentclass_attribute.data_type_string IN ( 'ezdate', 'ezdatetime' );

-- 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);
5 changes: 4 additions & 1 deletion update/database/postgresql/5.4/dbupdate-5.3.0-to-5.4.0.sql
Expand Up @@ -15,4 +15,7 @@ FROM ezcontentclass_attribute
WHERE
ezcontentclass_attribute.id = ezinfocollection_attribute.contentclass_attribute_id
AND ezinfocollection_attribute.data_int = 0
AND ezcontentclass_attribute.data_type_string IN ( 'ezdate', 'ezdatetime' );
AND ezcontentclass_attribute.data_type_string IN ( 'ezdate', 'ezdatetime' );

-- 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 93be9a7

Please sign in to comment.