summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/main.sql4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index e2280d225..3aebdaba1 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -311,7 +311,9 @@ CREATE TABLE IF NOT EXISTS `discord` (
`account_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`discord_id` VARCHAR(255) NOT NULL DEFAULT '',
`discord_name` VARCHAR(255) NOT NULL DEFAULT '',
- `verified` ENUM('0', '1') NOT NULL DEFAULT '0'
+ `verified` ENUM('0', '1') NOT NULL DEFAULT '0',
+ PRIMARY KEY (`discord_name`),
+ UNIQUE KEY `account_id` (`account_id`)
) ENGINE=MyISAM;
--