mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 14:03:32 -07:00
fix: More Backup Restore Fixes (#2859)
* refactor normalized search migration to use dummy default * changed group slug migration to use raw SQL * updated comment * added tests with anonymized backups (currently failing) * typo * fixed LDAP enum in test data * fix for adding label settings across groups * add migration data fixes * fix shopping list label settings test * re-run db init instead of just running alembic migration, to include fixes * intentionally broke SQLAlchemy GUID handling * safely convert between GUID types in different databases * restore original test data after testing backup restores * added missing group name update to migration
This commit is contained in:
parent
b3f7f2d89f
commit
7602c67449
14 changed files with 422 additions and 45 deletions
|
@ -4,6 +4,15 @@ CWD = Path(__file__).parent
|
|||
|
||||
locale_dir = CWD / "locale"
|
||||
|
||||
backup_version_44e8d670719d = CWD / "backups/backup_version_44e8d670719d.zip"
|
||||
"""44e8d670719d: add extras to shopping lists, list items, and ingredient foods"""
|
||||
|
||||
backup_version_ba1e4a6cfe99 = CWD / "backups/backup_version_ba1e4a6cfe99.zip"
|
||||
"""ba1e4a6cfe99: added plural names and alias tables for foods and units"""
|
||||
|
||||
backup_version_bcfdad6b7355 = CWD / "backups/backup_version_bcfdad6b7355.zip"
|
||||
"""bcfdad6b7355: remove tool name and slug unique contraints"""
|
||||
|
||||
migrations_paprika = CWD / "migrations/paprika.zip"
|
||||
|
||||
migrations_chowdown = CWD / "migrations/chowdown.zip"
|
||||
|
|
BIN
tests/data/backups/backup_version_44e8d670719d.zip
Normal file
BIN
tests/data/backups/backup_version_44e8d670719d.zip
Normal file
Binary file not shown.
BIN
tests/data/backups/backup_version_ba1e4a6cfe99.zip
Normal file
BIN
tests/data/backups/backup_version_ba1e4a6cfe99.zip
Normal file
Binary file not shown.
BIN
tests/data/backups/backup_version_bcfdad6b7355.zip
Normal file
BIN
tests/data/backups/backup_version_bcfdad6b7355.zip
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue