mirror of
https://github.com/perstarkse/minne.git
synced 2026-05-30 03:10:45 +02:00
189adb1a5f
Use UPSERT for analytics counters, enforce message ownership in SQL, return NotFound when patch_title updates nothing, scope file dedup by user_id with a composite unique index, and expand tests for auth, ordering, and edge cases.
4 lines
205 B
Plaintext
4 lines
205 B
Plaintext
-- Per-user deduplication: same SHA256 may exist for different users.
|
|
REMOVE INDEX IF EXISTS file_sha256_idx ON file;
|
|
DEFINE INDEX IF NOT EXISTS file_user_sha256_idx ON file FIELDS user_id, sha256 UNIQUE;
|