From 5838f0d02a99aeeede5bad775e51a30896abe960 Mon Sep 17 00:00:00 2001 From: Changaco Date: Sun, 14 Dec 2014 17:43:14 +0100 Subject: [PATCH] merge branch.sql into schema.sql --- branch.sql | 3 --- schema.sql | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 branch.sql diff --git a/branch.sql b/branch.sql deleted file mode 100644 index a95a9cf014..0000000000 --- a/branch.sql +++ /dev/null @@ -1,3 +0,0 @@ -BEGIN; - UPDATE participants SET anonymous_receiving=FALSE WHERE number='plural'; -END; \ No newline at end of file diff --git a/schema.sql b/schema.sql index e45e5ec2c2..649f16f438 100644 --- a/schema.sql +++ b/schema.sql @@ -57,6 +57,7 @@ CREATE TABLE participants , email_lang text , is_locked boolean NOT NULL DEFAULT FALSE , CONSTRAINT claimed_not_locked CHECK (NOT (claimed_time IS NOT NULL AND is_locked)) +, CONSTRAINT team_not_anonymous CHECK (NOT (number='plural' AND anonymous_receiving)) ); -- https://github.com/gratipay/gratipay.com/pull/1610