mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
* Ports TG's BSQL * write perms * my mistake * Missing migrations, fixes mistakes, removes unneeded logs * Missing migrations, fixes mistakes, removes unneeded logs * haha * Final missing migration, actually fix runtime * Fucked up this doesn't throw a warning * sql fixes; polls
30 lines
773 B
Plaintext
30 lines
773 B
Plaintext
/datum/migration/mysql/ss13/_012
|
|
id = 12
|
|
name = "Customitems in feedback DB"
|
|
|
|
/datum/migration/mysql/ss13/_012/up()
|
|
if(!hasTable("customitems"))
|
|
return execute({"CREATE TABLE IF NOT EXISTS `customitems` (
|
|
cuiCKey VARCHAR(36) NOT NULL,
|
|
cuiRealName VARCHAR(60) NOT NULL,
|
|
cuiPath VARCHAR(255) NOT NULL,
|
|
cuiDescription TEXT NOT NULL,
|
|
cuiReason TEXT NOT NULL,
|
|
cuiPropAdjust TEXT NOT NULL,
|
|
cuiJobMask TEXT NOT NULL,
|
|
PRIMARY KEY(cuiCkey,cuiRealName,cuiPath)
|
|
)
|
|
"});
|
|
else
|
|
warning("customitems table exists. Skipping addition.")
|
|
|
|
return TRUE
|
|
|
|
/datum/migration/mysql/ss13/_012/down()
|
|
if(hasTable("customitems"))
|
|
return execute("DROP TABLE customitems");
|
|
else
|
|
warning("customitems table doesn't exist. Skipping drop.")
|
|
|
|
return TRUE
|