From a9943981fd052a1b5c625cc8a1fe17832f196df6 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 12 Mar 2025 17:42:44 -0500 Subject: [PATCH] Add check for Sub.replyCost > 0 --- .../20250312223725_check_reply_cost_positive/migration.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 prisma/migrations/20250312223725_check_reply_cost_positive/migration.sql diff --git a/prisma/migrations/20250312223725_check_reply_cost_positive/migration.sql b/prisma/migrations/20250312223725_check_reply_cost_positive/migration.sql new file mode 100644 index 00000000..7736c04b --- /dev/null +++ b/prisma/migrations/20250312223725_check_reply_cost_positive/migration.sql @@ -0,0 +1,2 @@ +-- Add constraint to ensure replyCost is positive +ALTER TABLE "Sub" ADD CONSTRAINT "Sub_replyCost_positive" CHECK ("replyCost" > 0); \ No newline at end of file