Add schema v4 migration and update tests

This commit is contained in:
thePR0M3TH3AN
2025-07-08 14:16:51 -04:00
parent 49e1d51f00
commit c594719945
5 changed files with 33 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ def test_index_export_import_round_trip():
vault = setup_vault(tmp)
original = {
"schema_version": 3,
"schema_version": 4,
"entries": {
"0": {
"label": "example",
@@ -39,6 +39,7 @@ def test_index_export_import_round_trip():
"notes": "",
"custom_fields": [],
"origin": "",
"tags": [],
}
},
}
@@ -49,7 +50,7 @@ def test_index_export_import_round_trip():
vault.save_index(
{
"schema_version": 3,
"schema_version": 4,
"entries": {
"0": {
"label": "changed",
@@ -57,6 +58,7 @@ def test_index_export_import_round_trip():
"notes": "",
"custom_fields": [],
"origin": "",
"tags": [],
}
},
}