Deconflict

This commit is contained in:
AffectedArc07
2021-10-12 20:29:19 +01:00
parent 4ad5e41324
commit dd52f3a487
3 changed files with 13 additions and 2 deletions

11
SQL/updates/26-27.sql Normal file
View File

@@ -0,0 +1,11 @@
# Updates DB from 26 to 27 -AffectedArc07
# Adds a new table for instance data caching, and server_id fields on other tables
CREATE TABLE `instance_data_cache` (
`server_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_value` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`last_updated` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`server_id`, `key_name`) USING HASH
) COLLATE='utf8mb4_general_ci' ENGINE=MEMORY;

View File

@@ -365,7 +365,7 @@
#define INVESTIGATE_BOMB "bombs"
// The SQL version required by this version of the code
#define SQL_VERSION 26
#define SQL_VERSION 27
// Vending machine stuff
#define CAT_NORMAL 1

View File

@@ -142,7 +142,7 @@ ipc_screens = [
# Enable/disable the database on a whole
sql_enabled = false
# SQL version. If this is a mismatch, round start will be delayed
sql_version = 26
sql_version = 27
# SQL server address. Can be an IP or DNS name
sql_address = "127.0.0.1"
# SQL server port