GUACAMOLE-525: Fix up password history delete to be more compatible.
This commit is contained in:
1 parent
cb580c4ae9
commit
62a706896a
1 file changed
+2
-3
+2
-3
@@ -65,12 +65,11 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
DELETE FROM [guacamole_user_password_history]
|
DELETE FROM [guacamole_user_password_history]
|
||||||
WHERE password_history_id IN (
|
WHERE password_history_id NOT IN (
|
||||||
SELECT password_history_id
|
SELECT TOP(#{maxHistorySize}) password_history_id
|
||||||
FROM [guacamole_user_password_history]
|
FROM [guacamole_user_password_history]
|
||||||
WHERE user_id = #{record.userID,jdbcType=INTEGER}
|
WHERE user_id = #{record.userID,jdbcType=INTEGER}
|
||||||
ORDER BY password_date DESC
|
ORDER BY password_date DESC
|
||||||
OFFSET #{maxHistorySize}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
|
|||||||
Reference in new issue
Block a user