From 42ad96a2ff0ee69c0d3f24797863cf36feec44d2 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 19 Jun 2023 08:57:41 +0100 Subject: [PATCH] Fix MySQL cooldown type column schema, Fix #439 --- common/src/main/resources/database/mysql_schema.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/resources/database/mysql_schema.sql b/common/src/main/resources/database/mysql_schema.sql index 35f8b40a..fc7b7fca 100644 --- a/common/src/main/resources/database/mysql_schema.sql +++ b/common/src/main/resources/database/mysql_schema.sql @@ -42,11 +42,11 @@ CREATE TABLE IF NOT EXISTS `%players_table%` # Create the cooldowns table if it does not exist CREATE TABLE IF NOT EXISTS `%cooldowns_table%` ( - `id` integer NOT NULL AUTO_INCREMENT, - `player_uuid` char(36) NOT NULL UNIQUE, - `type` integer NOT NULL, - `start_timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, - `end_timestamp` datetime NOT NULL, + `id` integer NOT NULL AUTO_INCREMENT, + `player_uuid` char(36) NOT NULL UNIQUE, + `type` varchar(255) NOT NULL, + `start_timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + `end_timestamp` datetime NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`player_uuid`) REFERENCES `%players_table%` (`uuid`) ON DELETE CASCADE ON UPDATE CASCADE @@ -104,4 +104,4 @@ CREATE TABLE IF NOT EXISTS `%warps_table%` PRIMARY KEY (`uuid`), FOREIGN KEY (`saved_position_id`) REFERENCES `%saved_positions_table%` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION ) CHARACTER SET utf8 - COLLATE utf8_unicode_ci; \ No newline at end of file + COLLATE utf8_unicode_ci;