diff --git a/spinedb_api/db_mapping.py b/spinedb_api/db_mapping.py index 1bb1ee05..760507ef 100644 --- a/spinedb_api/db_mapping.py +++ b/spinedb_api/db_mapping.py @@ -246,9 +246,10 @@ def get_upgrade_db_prompt_data(url, create=False): if v_err.upgrade_available: title = "Incompatible database version" text = ( - f"The database at
'{sa_url}'

is at revision {v_err.current} " + f"The database at
'{sa_url}'

is at revision {v_err.current}. " f"and needs to be upgraded to revision {v_err.expected} " - "in order to be used with the current version of Spine." + f"in order to be used with your current version of Spine_Database_API (and Spine Toolbox, if " + f"using the database through Spine Toolbox)." "

WARNING: After the upgrade, the database may no longer be used with previous versions." ) if sa_url.drivername == "sqlite": @@ -268,9 +269,24 @@ def get_upgrade_db_prompt_data(url, create=False): else: title = "Unsupported database version" text = ( - f"The database at

'{sa_url}'

is at revision {v_err.current} " - f"while this version of Spine supports revisions up to {v_err.expected}." - "

Please upgrade Spine to use this database." + f"The database at

'{sa_url}'

is at revision {v_err.current}. " + f"This revision requires a newer version of Spine_Database_API (and Spine Toolbox, if using " + f"the database through Spine Toolbox). Your current Spine_Database_API " + f"supports revisions only up to {v_err.expected}." + f"

Please upgrade Spine Toolbox (and Spine_Database_API as a consequence) to use this database. " + f"Alternatively, re-do your work in a compatible database version, or use a back-up if you have " + f"one. This database cannot be reverted back to an older version." + f"