Codewise
Courses
My learning
Ideas
Leaderboard
YouTube
Courses
My learning
Ideas
Leaderboard
YouTube
Sign in
db/wallet/migrations/000009_append_only.up.sql · Payments Backend: Go Microservices | Codewise
Payments Backend: Go Microservices
payments
/
db
/
wallet
/
migrations
/
000009_append_only.up.sql
main
000009_append_only.up.sql
3 lines, 216 B
Raw
1
-- The ledger is append-only. The triggers say so, and now the role does too:
2
-- even with the triggers switched off, the wallet can't rewrite history.
3
REVOKE
UPDATE
,
DELETE
ON
transactions, entries
FROM
wallet_app;