mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 07:53:15 +00:00
クエリ修正
This commit is contained in:
parent
0b7b499624
commit
c1c705729a
|
@ -57,6 +57,6 @@ public interface VcsLogDao {
|
||||||
@Query("DELETE FROM vcs_log WHERE id = :id")
|
@Query("DELETE FROM vcs_log WHERE id = :id")
|
||||||
void deleteById(String id);
|
void deleteById(String id);
|
||||||
|
|
||||||
@Query("DELETE FROM vcs_log WHERE document_id = :documentId LIMIT 1")
|
@Query("DELETE FROM vcs_log WHERE id = (SELECT id FROM vcs_log WHERE document_id = :documentId ORDER BY created_at DESC LIMIT 1)")
|
||||||
void deleteLatestByDocumentId(String documentId);
|
void deleteLatestByDocumentId(String documentId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user