Autocorrect uuids

This commit is contained in:
M66B
2023-08-18 07:49:49 +02:00
parent f881e81949
commit 3ffce527cb
3 changed files with 11 additions and 2 deletions

View File

@@ -105,6 +105,9 @@ public interface DaoIdentity {
@Update
void updateIdentity(EntityIdentity identity);
@Query("UPDATE identity SET uuid = :uuid WHERE id = :id AND NOT (uuid IS :uuid)")
int setIdentityUuid(long id, String uuid);
@Query("UPDATE identity SET synchronize = :synchronize WHERE id = :id AND NOT (synchronize IS :synchronize)")
int setIdentitySynchronize(long id, boolean synchronize);