mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 03:01:31 +00:00
feat(sql): Setup proper keys and collation
- These fields should only be referenced, so index them for faster queries
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
CREATE TABLE `multicharacter_slots` (
|
||||
`identifier` VARCHAR(60) NOT NULL,
|
||||
`slots` INT NOT NULL
|
||||
);
|
||||
|
||||
ALTER TABLE `users`
|
||||
ADD `disabled` BIT NOT NULL DEFAULT 0;
|
||||
`identifier` VARCHAR(60) NOT NULL COLLATE 'utf8mb4_unicode_ci',
|
||||
`slots` INT(11) NOT NULL,
|
||||
PRIMARY KEY (`identifier`) USING BTREE,
|
||||
INDEX `slots` (`slots`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8mb4_unicode_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user