Files
Paradise/code/modules/unit_tests/sql.dm
Henri215 42d1758b2e Fixing common spelling mistakes part 2 (#20360)
* Fixing common spelling mistakes part 2

* "supressed"
2023-02-08 21:20:35 +01:00

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.")