mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 03:49:10 +01:00
Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
groups = list("generic")
|
||||
|
||||
/datum/unit_test/sql_preferences_columns/start_test()
|
||||
if(!config.sql_enabled)
|
||||
if(!GLOB.config.sql_enabled)
|
||||
TEST_WARN("--------------- Database not Configured - Skipping Preference Column UT")
|
||||
return UNIT_TEST_PASSED
|
||||
|
||||
TEST_DEBUG("--------------- Database Configured - Running SQL Preference UTs")
|
||||
|
||||
if(!establish_db_connection(dbcon))
|
||||
if(!establish_db_connection(GLOB.dbcon))
|
||||
TEST_FAIL("Database connection could not be established.")
|
||||
return UNIT_TEST_FAILED
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"ss13_characters_ipc_tags"
|
||||
)
|
||||
for (var/T in table_names)
|
||||
var/DBQuery/get_cs = dbcon.NewQuery("SELECT `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_NAME` = :table:")
|
||||
var/DBQuery/get_cs = GLOB.dbcon.NewQuery("SELECT `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_NAME` = :table:")
|
||||
get_cs.Execute(list("table" = T))
|
||||
|
||||
if (get_cs.ErrorMsg())
|
||||
|
||||
Reference in New Issue
Block a user