最後のレコードを削除できるように

This commit is contained in:
r-ca 2024-01-24 18:33:56 +09:00
parent 70380df8fd
commit 383b34c3d2
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -56,4 +56,7 @@ public interface VcsLogDao {
// Delete // Delete
@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 ORDER BY created_at LIMIT 1")
void deleteLatestByDocumentId(String documentId);
} }