Skip to content

Commit

Permalink
add one more consistency check for nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Oct 27, 2018
1 parent 80d1b7d commit eee6b3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions settings/ezdbintegrity.ini
Expand Up @@ -257,3 +257,4 @@ object_versions_without_attributes[sql]=SELECT contentobject_id, version FROM ez
objects_versions_with_bad_attribute_count[sql]=select * from ( select count(*) as objattributes, contentobject_id, version, language_code, contentclass_id as contentclass_id_o from ezcontentobject_attribute coa, ezcontentobject co where coa.contentobject_id = co.id group by version, contentobject_id, contentclass_id, language_code ) q1, ( select count(*) as classattributes, contentclass_id from ezcontentclass_attribute cca, ezcontentclass cc where cca.contentclass_id = cc.id and cca.version = cc.version and cc.version = 0 group by cc.id, cc.version ) q2 where q1.contentclass_id_o = q2.contentclass_id and q1.objattributes <> q2.classattributes
# nb: the following query can create a huge temp table!
ezflow_blocks_with_invalid_zones[sql]=SELECT * FROM ezm_block WHERE zone_id NOT IN ( SELECT DISTINCT ( SUBSTRING( a.data_text, LOCATE( '<zone id="id_', a.data_text ) +13, 32 ) ) AS existing_zone_id FROM ezcontentobject_attribute a, ezcontentobject_version v WHERE a.version = v.version AND a.contentobject_id = v.contentobject_id AND a.data_type_string = 'ezpage' )
nodes_with_wrong_path[sql]=SELECT * FROM ezcontentobject_tree c, ezcontentobject_tree p WHERE c.parent_node_id = p.node_id AND c.path_string NOT REGEXP CONCAT('^',p.path_string,c.node_id,'/$') AND c.node_id <> 1;

0 comments on commit eee6b3d

Please sign in to comment.