Fix groups cleanup request on some MySQL 5.7.x installations

This commit is contained in:
Abyss777
2016-09-21 12:32:44 +05:00
parent 208b664276
commit 9cc862ea2c

View File

@@ -17,7 +17,7 @@
<update tableName="groups">
<column name="groupid"/>
<where>groupid NOT IN (SELECT id FROM (SELECT id FROM groups) AS groups_ids)</where>
<where>groupid NOT IN (SELECT id FROM (SELECT DISTINCT id FROM groups) AS groups_ids)</where>
</update>
<addColumn tableName="devices">