##// END OF EJS Templates
system-info: detect database migration errors.
marcink -
r1575:37dcd1a5 default
parent child Browse files
Show More
@@ -639,6 +639,14 b' def database_info():'
639 version=db_version,
639 version=db_version,
640 url=repr(db_url_obj)
640 url=repr(db_url_obj)
641 )
641 )
642 current_version = db_migrate.version
643 expected_version = rhodecode.__dbversion__
644 if state['type'] == STATE_OK and current_version != expected_version:
645 msg = 'Critical: database schema mismatch, ' \
646 'expected version {}, got {}. ' \
647 'Please run migrations on your database.'.format(
648 expected_version, current_version)
649 state = {'message': msg, 'type': STATE_ERR}
642
650
643 human_value = db_info.copy()
651 human_value = db_info.copy()
644 human_value['url'] = "{} @ migration version: {}".format(
652 human_value['url'] = "{} @ migration version: {}".format(
General Comments 0
You need to be logged in to leave comments. Login now