SQL Changes for Lamp Bloom PR (#25863)

* Changes copied from #24534

* Adds NOT NULL constraint to the new columns
This commit is contained in:
Matt
2024-06-08 22:38:46 +00:00
committed by GitHub
parent 6d8d449d10
commit e19f20ca53
4 changed files with 10 additions and 2 deletions
+2
View File
@@ -280,6 +280,8 @@ CREATE TABLE `player` (
`toggles` int(11) DEFAULT NULL,
`toggles_2` int(11) DEFAULT NULL,
`sound` mediumint(8) DEFAULT '31',
`light` MEDIUMINT(3) NOT NULL DEFAULT '7',
`glowlevel` TINYINT(1) NOT NULL DEFAULT '1',
`volume_mixer` LONGTEXT COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lastchangelog` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`exp` LONGTEXT COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+6
View File
@@ -0,0 +1,6 @@
# Updating SQL from 56 to 57 - MrRomainzZ and Burza
# Add light settings to player preferences
ALTER TABLE `player`
ADD COLUMN `light` MEDIUMINT(3) NOT NULL DEFAULT '7' AFTER `sound`,
ADD COLUMN `glowlevel` TINYINT(1) NOT NULL DEFAULT '1' AFTER `light`;
+1 -1
View File
@@ -403,7 +403,7 @@
#define INVESTIGATE_HOTMIC "hotmic"
// The SQL version required by this version of the code
#define SQL_VERSION 56
#define SQL_VERSION 57
// Vending machine stuff
#define CAT_NORMAL (1<<0)
+1 -1
View File
@@ -175,7 +175,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 = 56
sql_version = 57
# SQL server address. Can be an IP or DNS name
sql_address = "127.0.0.1"
# SQL server port