SQL changes for quirks (#28956)

* Put it over here

* wrong

* over here as well

* Fixes it actually this time
This commit is contained in:
BiancaWilkson
2025-05-04 08:22:48 -04:00
committed by GitHub
parent b5fa9dda9f
commit d5ec3cdb72
4 changed files with 7 additions and 2 deletions
+1
View File
@@ -83,6 +83,7 @@ CREATE TABLE `characters` (
`runechat_color` VARCHAR(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#FFFFFF',
`cyborg_brain_type` ENUM('MMI', 'Robobrain', 'Positronic') NOT NULL DEFAULT 'MMI',
`pda_ringtone` VARCHAR(16) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
`quirks` LONGTEXT COLLATE 'utf8mb4_unicode_ci' DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ckey` (`ckey`)
) ENGINE=InnoDB AUTO_INCREMENT=125467 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+4
View File
@@ -0,0 +1,4 @@
#Updates the DB from 66 to 67
#Adds a column to the characters table that stores quirks in a JSON format
ALTER TABLE `characters`
ADD column `quirks` LONGTEXT COLLATE 'utf8mb4_unicode_ci' DEFAULT NULL AFTER `pda_ringtone`;
+1 -1
View File
@@ -437,7 +437,7 @@
#define INVESTIGATE_WIRES "wires"
// The SQL version required by this version of the code
#define SQL_VERSION 66
#define SQL_VERSION 67
// Vending machine stuff
#define CAT_NORMAL (1<<0)
+1 -1
View File
@@ -173,7 +173,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 = 66
sql_version = 67
# SQL server address. Can be an IP or DNS name
sql_address = "127.0.0.1"
# SQL server port