Fixes an SQL error from maximum name length (#16305)

* Reduces maximum name length

* Revert "Reduces maximum name length"

This reverts commit 7d0fe75c54.

* why were these in _compile_options.dm

* SQL Stuff
This commit is contained in:
SabreML
2021-07-25 15:51:47 +01:00
committed by GitHub
parent 01dfe5c7b7
commit 63412043ee
8 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ CREATE TABLE `characters` (
`ckey` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
`slot` int(2) NOT NULL,
`OOC_Notes` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`real_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`real_name` varchar(55) COLLATE utf8mb4_unicode_ci NOT NULL,
`name_is_always_random` tinyint(1) NOT NULL,
`gender` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL,
`age` smallint(4) NOT NULL,
+1 -1
View File
@@ -24,7 +24,7 @@ CREATE TABLE `SS13_characters` (
`ckey` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
`slot` int(2) NOT NULL,
`OOC_Notes` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`real_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`real_name` varchar(55) COLLATE utf8mb4_unicode_ci NOT NULL,
`name_is_always_random` tinyint(1) NOT NULL,
`gender` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL,
`age` smallint(4) NOT NULL,
+4
View File
@@ -0,0 +1,4 @@
# Updates the DB from 24 to 25 -SabreML
# Increases the maximum length of `real_name` from 45 to 55 in the `characters` table.
ALTER TABLE `characters` MODIFY COLUMN `real_name` varchar(55) COLLATE utf8mb4_unicode_ci NOT NULL
+1 -1
View File
@@ -363,7 +363,7 @@
#define INVESTIGATE_BOMB "bombs"
// The SQL version required by this version of the code
#define SQL_VERSION 24
#define SQL_VERSION 25
// Vending machine stuff
#define CAT_NORMAL 1
+6
View File
@@ -0,0 +1,6 @@
//Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
#define MAX_MESSAGE_LEN 1024
#define MAX_PAPER_MESSAGE_LEN 3072
#define MAX_PAPER_FIELDS 50
#define MAX_BOOK_MESSAGE_LEN 9216
#define MAX_NAME_LEN 50 //diona names can get loooooooong
-7
View File
@@ -21,13 +21,6 @@
#define IS_MODE_COMPILED(MODE) (ispath(text2path("/datum/game_mode/"+(MODE))))
//Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
#define MAX_MESSAGE_LEN 1024
#define MAX_PAPER_MESSAGE_LEN 3072
#define MAX_PAPER_FIELDS 50
#define MAX_BOOK_MESSAGE_LEN 9216
#define MAX_NAME_LEN 50 //diona names can get loooooooong
//Update this whenever you need to take advantage of more recent byond features
#define MIN_COMPILER_VERSION 513
#define MIN_COMPILER_BUILD 1514
+1 -1
View File
@@ -140,7 +140,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 = 24
sql_version = 25
# SQL server address. Can be an IP or DNS name
sql_address = "127.0.0.1"
# SQL server port
+1
View File
@@ -82,6 +82,7 @@
#include "code\__DEFINES\station_goals.dm"
#include "code\__DEFINES\status_effects.dm"
#include "code\__DEFINES\subsystems.dm"
#include "code\__DEFINES\text.dm"
#include "code\__DEFINES\tgs.dm"
#include "code\__DEFINES\tgui.dm"
#include "code\__DEFINES\tools.dm"