mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2025-04-14 12:10:48 +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")
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user