Fix MySQL cooldown type column schema, Fix #439

This commit is contained in:
William authored and GitHub committed 2023-06-19 08:57:41 +01:00
1 parent 100dac9fcd
commit 42ad96a2ff
1 file changed
+5 -5
@@ -42,11 +42,11 @@ CREATE TABLE IF NOT EXISTS `%players_table%`
# Create the cooldowns table if it does not exist # Create the cooldowns table if it does not exist
CREATE TABLE IF NOT EXISTS `%cooldowns_table%` CREATE TABLE IF NOT EXISTS `%cooldowns_table%`
( (
`id` integer NOT NULL AUTO_INCREMENT, `id` integer NOT NULL AUTO_INCREMENT,
`player_uuid` char(36) NOT NULL UNIQUE, `player_uuid` char(36) NOT NULL UNIQUE,
`type` integer NOT NULL, `type` varchar(255) NOT NULL,
`start_timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `start_timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`end_timestamp` datetime NOT NULL, `end_timestamp` datetime NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
FOREIGN KEY (`player_uuid`) REFERENCES `%players_table%` (`uuid`) ON DELETE CASCADE ON UPDATE CASCADE FOREIGN KEY (`player_uuid`) REFERENCES `%players_table%` (`uuid`) ON DELETE CASCADE ON UPDATE CASCADE