Moves various things to the new DBCore (#21544)

```
- server: "Changed the synthsprites to use the new DBCore"
- server: "Changed the MalfAI to use the new DBCore"
- server: "Changed the Alien Whitelists to use the new DBCore"
- server: "Changed the Requests Console to use the new DBCore"
- server: "Changed the Contracts Uplink to use the new DBCore"
- server: "Changed the Admin Ranks to use the new DBCore"
- server: "Changed the Job Bans to use the new DBCore"
- server: "Changed the Tickets to use the new DBCore"
- server: "Changed the Create Command Report to use the new DBCore"
- server: "Changed the WebInterface interconnect to use the new DBCore"
- server: "Changed the CCIA Recorder to use the new DBCore"
- server: "Changed the IPCTags to use the new DBCore"
- server: "Changed the Main Menu Poll-Check to use the new DBCore"
- server: "Changed the Client-Procs to use the new DBCore"
```

---------

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Arrow768
2026-04-13 22:45:29 +02:00
committed by GitHub
co-authored by Werner
parent 17721ddae4
commit 03f313a19d
33 changed files with 717 additions and 384 deletions
+3 -21
View File
@@ -15,7 +15,6 @@ GLOBAL_DATUM_INIT(revdata, /datum/getrev, new())
var/date
var/showinfo
var/list/datum/tgs_revision_information/test_merge/test_merges
var/greeting_info
/datum/getrev/New()
var/list/head_branch = file2list(".git/HEAD", "\n")
@@ -56,6 +55,9 @@ GLOBAL_DATUM_INIT(revdata, /datum/getrev, new())
to_chat(src, "<b>Current Map:</b> [SSatlas.current_map.full_name]")
if(GLOB.revdata.test_merges.len)
to_chat(src, GLOB.revdata.testmerge_overview())
/datum/getrev/proc/testmerge_overview()
if (!test_merges.len)
return
@@ -69,24 +71,6 @@ GLOBAL_DATUM_INIT(revdata, /datum/getrev, new())
return out.Join()
/datum/getrev/proc/generate_greeting_info()
if (!test_merges.len)
greeting_info = {"<div class="alert alert-info">
There are currently no test merges loaded onto the server.
</div>"}
return
var/list/out = list("<p>There are currently [test_merges.len] PRs being tested live.</p>",
{"<table class="table table-hover">"}
)
for (var/TM in test_merges)
out += testmerge_long_oveview(TM)
out += "</table>"
greeting_info = out.Join()
/datum/getrev/proc/testmerge_initialize()
var/datum/tgs_api/api = TGS_READ_GLOBAL(tgs)
@@ -98,8 +82,6 @@ GLOBAL_DATUM_INIT(revdata, /datum/getrev, new())
LOG_DEBUG("GETREV: No TGS API found.")
test_merges = list()
generate_greeting_info()
/datum/getrev/proc/testmerge_short_overview(datum/tgs_revision_information/test_merge/tm)
. = list()
+3 -2
View File
@@ -53,12 +53,12 @@ paiicon is the pai icon sprite name
LOG_DEBUG("Synthsprites: SQL Disabled - Falling back to JSON")
loadsynths_from_json()
return
if(!establish_db_connection(GLOB.dbcon))
if(!SSdbcore.Connect())
LOG_DEBUG("Synthsprites: SQL ERROR - Failed to connect. - Falling back to JSON")
loadsynths_from_json()
return
var/DBQuery/customsynthsprites = GLOB.dbcon.NewQuery("SELECT synthname, synthckey, synthicon, aichassisicon, aiholoicon, paiicon FROM ss13_customsynths ORDER BY synthckey ASC")
var/datum/db_query/customsynthsprites = SSdbcore.NewQuery("SELECT synthname, synthckey, synthicon, aichassisicon, aiholoicon, paiicon FROM ss13_customsynths ORDER BY synthckey ASC")
customsynthsprites.Execute()
while(customsynthsprites.NextRow())
CHECK_TICK
@@ -71,3 +71,4 @@ paiicon is the pai icon sprite name
synth.aiholoicon = customsynthsprites.item[5]
synth.paiicon = customsynthsprites.item[6]
robot_custom_icons[synth.synthname] = synth
qdel(customsynthsprites)