Each supporter only makes each type of request 1x.
This commit is contained in:
parent
ccfa057cce
commit
b62283dc74
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ CREATE TABLE "request" (
|
||||||
"notes" TEXT
|
"notes" TEXT
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX request__one_request_for_each_type_per_supporter
|
||||||
|
ON request(supporter_id, request_type_id);
|
||||||
|
|
||||||
DROP TABLE IF EXISTS "request_configuration";
|
DROP TABLE IF EXISTS "request_configuration";
|
||||||
|
|
||||||
CREATE TABLE "request_configuration" (
|
CREATE TABLE "request_configuration" (
|
||||||
|
|
Loading…
Reference in a new issue