mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-15 00:12:20 -05:00
feat: implement backup restoration from old db schemas (#2213)
* Remove some implicit lazy-loads from user serialization * implement full backup restore across different database versions
This commit is contained in:
@@ -89,10 +89,6 @@ class BackupV2(BaseService):
|
||||
|
||||
database_json = contents.read_tables()
|
||||
|
||||
if not AlchemyExporter.validate_schemas(database_json, self.db_exporter.dump()):
|
||||
self.logger.error("Invalid backup file. Database schemas do not match")
|
||||
raise BackupSchemaMismatch("Invalid backup file. Database schemas do not match")
|
||||
|
||||
# ================================
|
||||
# Purge Database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user