Skip to content

Commit 6715943

Browse files
authored
Merge pull request #1970 from stackernews/reply-cost-check
Add check for Sub.replyCost > 0
2 parents dbce0a7 + a994398 commit 6715943

File tree

1 file changed

+2
-0
lines changed
  • prisma/migrations/20250312223725_check_reply_cost_positive

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Add constraint to ensure replyCost is positive
2+
ALTER TABLE "Sub" ADD CONSTRAINT "Sub_replyCost_positive" CHECK ("replyCost" > 0);

0 commit comments

Comments
 (0)