9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2026-01-04 15:31:37 +00:00

Events & API work, save DataSaveCauses as part of versioning

This commit is contained in:
William
2022-07-07 01:52:19 +01:00
parent fd08a3e7d0
commit 1c9d74f925
48 changed files with 1477 additions and 340 deletions

View File

@@ -7,6 +7,7 @@
language: 'en-gb'
check_for_updates: true
cluster_id: ''
debug_logging: true
database:
credentials:
@@ -37,6 +38,7 @@ synchronization:
max_user_data_records: 5
save_on_world_save: true
compress_data: true
network_latency_milliseconds: 500
features:
inventories: true
ender_chests: true

View File

@@ -10,10 +10,11 @@ CREATE TABLE IF NOT EXISTS `%players_table%`
# Create the player data table if it does not exist
CREATE TABLE IF NOT EXISTS `%data_table%`
(
`version_uuid` char(36) NOT NULL,
`player_uuid` char(36) NOT NULL,
`timestamp` datetime NOT NULL,
`data` mediumblob NOT NULL,
`version_uuid` char(36) NOT NULL,
`player_uuid` char(36) NOT NULL,
`timestamp` datetime NOT NULL,
`save_cause` varchar(32) NOT NULL,
`data` mediumblob NOT NULL,
PRIMARY KEY (`version_uuid`),
FOREIGN KEY (`player_uuid`) REFERENCES `%players_table%` (`uuid`) ON DELETE CASCADE