Merge pull request #1970 from stackernews/reply-cost-check

Add check for Sub.replyCost > 0
This commit is contained in:
Keyan 2025-03-12 19:46:47 -05:00 committed by GitHub
commit 6715943862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,2 @@
-- Add constraint to ensure replyCost is positive
ALTER TABLE "Sub" ADD CONSTRAINT "Sub_replyCost_positive" CHECK ("replyCost" > 0);