From c5a85436be516cc018290d31ad7a484fda5d884b Mon Sep 17 00:00:00 2001 From: William Date: Tue, 27 Jun 2023 23:22:21 +0100 Subject: [PATCH] Remove UNIQUE constraint on cooldowns table --- common/src/main/resources/database/mysql_schema.sql | 2 +- common/src/main/resources/database/sqlite_schema.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/resources/database/mysql_schema.sql b/common/src/main/resources/database/mysql_schema.sql index 3a9bbef7..9b941097 100644 --- a/common/src/main/resources/database/mysql_schema.sql +++ b/common/src/main/resources/database/mysql_schema.sql @@ -43,7 +43,7 @@ CREATE TABLE IF NOT EXISTS `%players_table%` CREATE TABLE IF NOT EXISTS `%cooldowns_table%` ( `id` integer NOT NULL AUTO_INCREMENT, - `player_uuid` char(36) NOT NULL UNIQUE, + `player_uuid` char(36) NOT NULL, `type` varchar(255) NOT NULL, `start_timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `end_timestamp` datetime NOT NULL, diff --git a/common/src/main/resources/database/sqlite_schema.sql b/common/src/main/resources/database/sqlite_schema.sql index e29460b8..813091be 100644 --- a/common/src/main/resources/database/sqlite_schema.sql +++ b/common/src/main/resources/database/sqlite_schema.sql @@ -35,7 +35,7 @@ CREATE TABLE IF NOT EXISTS `%players_table%` CREATE TABLE IF NOT EXISTS `%cooldowns_table%` ( `id` integer NOT NULL, - `player_uuid` char(36) NOT NULL UNIQUE, + `player_uuid` char(36) NOT NULL, `type` varchar(255) NOT NULL, `start_timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `end_timestamp` datetime NOT NULL,