Commit 88f70cf7 authored by echel0n's avatar echel0n

Added more detailed logging for database restores

parent 8b325823
......@@ -326,12 +326,14 @@ class SRDatabase(object):
# restore schema
if backup_dict.get('schema', None):
for table_name, schema in backup_dict['schema'].items():'Restoring {} database table {} schema'.format(, table_name))
# restore indexes
if backup_dict.get('indexes', None):
for table_name, indexes in backup_dict['indexes'].items():'Restoring {} database table {} indexes'.format(, table_name))
for index in indexes:
......@@ -341,6 +343,7 @@ class SRDatabase(object):
base = self.get_base()
meta = self.get_metadata()
for table_name, data in backup_dict['data'].items():'Restoring {} database table {} data'.format(, table_name))
table = base.classes[table_name]
for row in loads(data, meta, session):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment