From 0c9d85666cf4aea3d2c65f1b0f27373171fe9ac9 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sun, 26 Nov 2023 19:16:04 -0500 Subject: [PATCH] Add index to player account discriminator --- src/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.rs b/src/database.rs index c646abe..d1dc96a 100644 --- a/src/database.rs +++ b/src/database.rs @@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS datasets ( CREATE TABLE IF NOT EXISTS players ( id INTEGER PRIMARY KEY, - discrim TEXT NOT NULL, + discrim TEXT UNIQUE NOT NULL, name TEXT NOT NULL, prefix TEXT ) STRICT;