mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-04 01:49:31 +01:00
Remove SQL indexes on the permission field
This commit is contained in:
parent
8eed3131f2
commit
c4154c09da
@ -12,7 +12,6 @@ CREATE TABLE `{prefix}user_permissions` (
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
CREATE INDEX ON `{prefix}user_permissions` (`uuid`);
|
||||
CREATE INDEX ON `{prefix}user_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}group_permissions` (
|
||||
`id` INT AUTO_INCREMENT NOT NULL,
|
||||
@ -26,7 +25,6 @@ CREATE TABLE `{prefix}group_permissions` (
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
CREATE INDEX ON `{prefix}group_permissions` (`name`);
|
||||
CREATE INDEX ON `{prefix}group_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}players` (
|
||||
`uuid` VARCHAR(36) NOT NULL,
|
||||
|
@ -12,7 +12,6 @@ CREATE TABLE `{prefix}user_permissions` (
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARSET = utf8mb4;
|
||||
CREATE INDEX `{prefix}user_permissions_uuid` ON `{prefix}user_permissions` (`uuid`);
|
||||
CREATE INDEX `{prefix}user_permissions_permission` ON `{prefix}user_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}group_permissions` (
|
||||
`id` INT AUTO_INCREMENT NOT NULL,
|
||||
@ -26,7 +25,6 @@ CREATE TABLE `{prefix}group_permissions` (
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARSET = utf8mb4;
|
||||
CREATE INDEX `{prefix}group_permissions_name` ON `{prefix}group_permissions` (`name`);
|
||||
CREATE INDEX `{prefix}group_permissions_permission` ON `{prefix}group_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}players` (
|
||||
`uuid` VARCHAR(36) NOT NULL,
|
||||
|
@ -12,7 +12,6 @@ CREATE TABLE `{prefix}user_permissions` (
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARSET = utf8mb4;
|
||||
CREATE INDEX `{prefix}user_permissions_uuid` ON `{prefix}user_permissions` (`uuid`);
|
||||
CREATE INDEX `{prefix}user_permissions_permission` ON `{prefix}user_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}group_permissions` (
|
||||
`id` INT AUTO_INCREMENT NOT NULL,
|
||||
@ -26,7 +25,6 @@ CREATE TABLE `{prefix}group_permissions` (
|
||||
PRIMARY KEY (`id`)
|
||||
) DEFAULT CHARSET = utf8mb4;
|
||||
CREATE INDEX `{prefix}group_permissions_name` ON `{prefix}group_permissions` (`name`);
|
||||
CREATE INDEX `{prefix}group_permissions_permission` ON `{prefix}group_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}players` (
|
||||
`uuid` VARCHAR(36) NOT NULL,
|
||||
|
@ -11,7 +11,6 @@ CREATE TABLE "{prefix}user_permissions" (
|
||||
"contexts" VARCHAR(200) NOT NULL
|
||||
);
|
||||
CREATE INDEX "{prefix}user_permissions_uuid" ON "{prefix}user_permissions" ("uuid");
|
||||
CREATE INDEX "{prefix}user_permissions_permission" ON "{prefix}user_permissions" ("permission");
|
||||
|
||||
CREATE TABLE "{prefix}group_permissions" (
|
||||
"id" SERIAL PRIMARY KEY NOT NULL,
|
||||
@ -24,7 +23,6 @@ CREATE TABLE "{prefix}group_permissions" (
|
||||
"contexts" VARCHAR(200) NOT NULL
|
||||
);
|
||||
CREATE INDEX "{prefix}group_permissions_name" ON "{prefix}group_permissions" ("name");
|
||||
CREATE INDEX "{prefix}group_permissions_permission" ON "{prefix}group_permissions" ("permission");
|
||||
|
||||
CREATE TABLE "{prefix}players" (
|
||||
"uuid" VARCHAR(36) PRIMARY KEY NOT NULL,
|
||||
|
@ -11,7 +11,6 @@ CREATE TABLE `{prefix}user_permissions` (
|
||||
`contexts` VARCHAR(200) NOT NULL
|
||||
);
|
||||
CREATE INDEX `{prefix}user_permissions_uuid` ON `{prefix}user_permissions` (`uuid`);
|
||||
CREATE INDEX `{prefix}user_permissions_permission` ON `{prefix}user_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}group_permissions` (
|
||||
`id` INTEGER PRIMARY KEY NOT NULL,
|
||||
@ -24,7 +23,6 @@ CREATE TABLE `{prefix}group_permissions` (
|
||||
`contexts` VARCHAR(200) NOT NULL
|
||||
);
|
||||
CREATE INDEX `{prefix}group_permissions_name` ON `{prefix}group_permissions` (`name`);
|
||||
CREATE INDEX `{prefix}group_permissions_permission` ON `{prefix}group_permissions` (`permission`);
|
||||
|
||||
CREATE TABLE `{prefix}players` (
|
||||
`uuid` VARCHAR(36) NOT NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user