Permalink
Browse files

two more checks

  • Loading branch information...
gggeek committed Oct 27, 2018
1 parent eee6b3d commit 8391731d1350206df7e2f9d563381c746c0e638d
Showing with 2 additions and 0 deletions.
  1. +2 −0 settings/ezdbintegrity.ini
@@ -258,3 +258,5 @@ objects_versions_with_bad_attribute_count[sql]=select * from ( select count(*) a
# 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;
attributes_without_version[sql]=SELECT * FROM ezcontentobject_attribute a WHERE version NOT IN (SELECT version FROM ezcontentobject_version v WHERE a.contentobject_id = v.contentobject_id)
object_names_without_version[sql]=SELECT * FROM ezcontentobject_name n WHERE content_version NOT IN (SELECT version FROM ezcontentobject_version v WHERE n.contentobject_id = v.contentobject_id)

0 comments on commit 8391731

Please sign in to comment.