From a5ef579767c91d89f4508ec524d14ec30730bd66 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Fri, 3 Nov 2023 11:53:47 -0400 Subject: [PATCH] ElectionName is not unique in the other tables. --- database_setup/database.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database_setup/database.sql b/database_setup/database.sql index 7996551..299e621 100644 --- a/database_setup/database.sql +++ b/database_setup/database.sql @@ -6,7 +6,7 @@ CREATE TABLE ElectionInformation( ); CREATE TABLE CouncilMembers( - ElectionCycle varchar(30) not null unique, + ElectionCycle varchar(30) not null, MemberId bigint unsigned not null, SpeechMsgId bigint unsigned not null, Elected boolean DEFAULT false, @@ -18,7 +18,7 @@ CREATE TABLE CouncilMembers( ); CREATE TABLE Votes( - ElectionCycle varchar(30) not null unique, + ElectionCycle varchar(30) not null, VoterId bigint unsigned not null, VotedForId bigint unsigned, FOREIGN KEY (ElectionCycle) REFERENCES ElectionInformation(ElectionCycle),