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
+5 -2
View File
@@ -5,6 +5,7 @@ SUBSYSTEM_DEF(dbcore)
wait = 10 // Not seconds because we're running on SS_TICKER
runlevels = RUNLEVEL_LOBBY|RUNLEVELS_DEFAULT
init_order = INIT_ORDER_DBCORE
init_stage = INITSTAGE_FIRST
priority = FIRE_PRIORITY_DATABASE
@@ -308,6 +309,8 @@ SUBSYSTEM_DEF(dbcore)
/// Check if we have established a DB Connection
/datum/controller/subsystem/dbcore/proc/IsConnected()
PRIVATE_PROC(TRUE)
if(!GLOB.config.sql_enabled)
return FALSE
if (!connection)
@@ -489,7 +492,7 @@ SUBSYSTEM_DEF(dbcore)
if(status == DB_QUERY_STARTED)
CRASH("Attempted to start a new query while waiting on the old one")
if(!SSdbcore.IsConnected())
if(!SSdbcore.Connect())
last_error = "No connection!"
return FALSE
@@ -528,7 +531,7 @@ SUBSYSTEM_DEF(dbcore)
if(status == DB_QUERY_STARTED)
CRASH("Attempted to start a new query while waiting on the old one")
if(!SSdbcore.IsConnected())
if(!SSdbcore.Connect())
last_error = "No connection!"
return FALSE