Skip to main content
Makenot
.
work
Discover
Use Cases
Docs
Fan+
Login
Join
max
/
makenotwork
main
tag: launch-2026-06-01
tag: magicmirror-v0.1.1
tag: magicmirror-v0.3.0
tag: mnw-cli-v0.1.2
tag: mnw-cli-v0.1.3
tag: mnw-cli-v0.1.4
tag: pom-v0.4.1
tag: pom-v0.4.2
tag: pom-v0.4.3
tag: pom-v0.4.4
tag: pom-v0.4.5
tag: wam-v0.3.0
tag: wam-v0.3.1
Files
Commits
Tags
Notes
Issues
makenotwork
/
server
/
migrations
/
106_idempotency_key_scope.sql
281 B · 6 lines
History
Blame
Raw
1
--
Widen idempotency key unique constraint to include method and path.
2
--
Prevents cross-endpoint collision when the same key is reused.
3
4
ALTER
TABLE
idempotency_keys DROP
CONSTRAINT
idempotency_keys_pkey;
5
ALTER
TABLE
idempotency_keys ADD
PRIMARY KEY
(key, user_id, method,
path
);
6