From 279d3f4885d9bbe629e09555792fe56f0989f995 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Tue, 18 Feb 2025 23:05:02 -0500 Subject: [PATCH] Set a primary key for the new table. Automap doesn't work without. --- highscores_database.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/highscores_database.sql b/highscores_database.sql index 6e4be47..1854cbf 100644 --- a/highscores_database.sql +++ b/highscores_database.sql @@ -50,5 +50,6 @@ CREATE TABLE Submissions( GuildId int unsigned not null, MessageId int unsigned not null, Score varchar(30) not null, -- Score is stored as a string until converted during submission - UserName varchar(30) not null + UserName varchar(30) not null, + PRIMARY KEY (CategoryId, UserName) -- one submission a category per user. ); \ No newline at end of file