This commit is contained in:
2022-03-30 19:27:04 +00:00
parent b0033aa4de
commit 186e03254f
14 changed files with 190 additions and 27 deletions

View File

@@ -1330,9 +1330,9 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
where t.baselanguage = 'en'
*/
//MAKE SURE THE DESIRED SCHEMA WAS SET PROPERLY
//Handle newer schema than expected (user ran a new version then downgraded ayanova)
if (currentSchema > DESIRED_SCHEMA_LEVEL)
throw new ArgumentOutOfRangeException("AySchema::DesiredSchemaLevel WASN'T SET PROPERLY");
throw new ArgumentOutOfRangeException($"DB Schema error: the database has a newer schema version {currentSchema} than this version of AyaNova expects {DESIRED_SCHEMA_LEVEL}\nThis version of AyaNova is older than a previous version that was used with this database and is not compatible with the new database format.\nUpgrade AyaNova or restore a backup of the database from before the newer version of AyaNova was used.");