Skip to content

Commit

Permalink
Add a new custom query
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Nov 14, 2019
1 parent 2a8da7c commit 7df50fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/changelogs/changelog-0.17.0-to-0.18.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog from version 0.17.0 to 0.18.0

. added a new custom query: find child nodes of non-container parents
2 changes: 1 addition & 1 deletion extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<software>
<metadata>
<name>eZ DB Integrity extension</name>
<version>0.17.0</version>
<version>0.18.0</version>
<copyright>Copyright (C) 2014-2019 Gaetano Giunta</copyright>
<license>GNU General Public License v2.0</license>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion ezinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static function info()
{
return array(
'Name' => "<a href=\"http://projects.ez.no/ezdbintegrity\">eZ DB Integrity extension</a>",
'Version' => "0.17.0",
'Version' => "0.18.0",
'Copyright' => "Copyright (C) 2014-2019 Gaetano Giunta",
'License' => "GNU General Public License v2.0"
);
Expand Down
1 change: 1 addition & 0 deletions settings/ezdbintegrity.ini
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ objects_with_many_published_versions[sql]=SELECT contentobject_id, count(*) FROM
nodes_with_wrong_depth[sql]=SELECT c.node_id FROM ezcontentobject_tree c, ezcontentobject_tree p WHERE c.parent_node_id = p.node_id AND c.depth != ( p.depth + 1 ) AND c.node_id != 1
objects_with_multiple_main_nodes[sql]=SELECT id, COUNT(DISTINCT main_node_id) FROM ezcontentobject o, ezcontentobject_tree n WHERE o.id = n.contentobject_id GROUP BY id, main_node_id HAVING COUNT(DISTINCT main_node_id) > 1
objects_multilocated_under_a_node[sql]=SELECT parent_node_id, contentobject_id, COUNT(*) FROM ezcontentobject_tree GROUP BY parent_node_id, contentobject_id HAVING COUNT(*) > 1 ORDER BY parent_node_id, contentobject_id
children_of_non_container_parents[sql]=SELECT pclass.identifier as parent_class, count(*) as children FROM ezcontentobject_tree child, ezcontentobject_tree parent, ezcontentobject pobj, ezcontentclass pclass WHERE (pclass.is_container != 1 or pclass.is_container is null) AND child.parent_node_id = parent.node_id AND parent.contentobject_id = pobj.id AND pobj.contentclass_id = pclass.id GROUP BY pclass.id ORDER BY pclass.identifier
related_nodes_with_different_objects[sql]=SELECT main_node_id, COUNT(DISTINCT contentobject_id) FROM ezcontentobject_tree GROUP BY main_node_id HAVING COUNT(DISTINCT contentobject_id) > 1
visible_but_hidden_nodes[sql]=SELECT node_id, is_hidden, is_invisible FROM ezcontentobject_tree WHERE is_hidden=1 AND is_invisible=0
#objects_without_versions[sql]=SELECT id FROM ezcontentobject WHERE NOT EXISTS ( SELECT contentobject_id, version from ezcontentobject_version WHERE ezcontentobject.id = ezcontentobject_version.contentobject_id )
Expand Down

0 comments on commit 7df50fc

Please sign in to comment.