mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix MySQL cooldown type column schema, Fix #439
This commit is contained in:
1 parent
100dac9fcd
commit
42ad96a2ff
1 file changed
+6
-6
@@ -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;
|
||||
COLLATE utf8_unicode_ci;
|
||||
Reference in new issue
Block a user