mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-19 14:51:27 +00:00
11 lines
477 B
Plaintext
11 lines
477 B
Plaintext
// Unit test to check SQL version has been updated properly.,
|
|
/datum/unit_test/sql_version/Run()
|
|
// Check if the SQL version set in the code is equal to the CI DB config
|
|
if(GLOB.configuration.database.version != SQL_VERSION)
|
|
Fail("SQL version error: Game is running V[SQL_VERSION] but config is V[GLOB.configuration.database.version]. You may need to update the example config.")
|
|
|
|
if(SSdbcore.total_errors > 0)
|
|
Fail("SQL errors occurred on startup. Please fix them.")
|
|
|
|
|