Fix migration to not import historical advert path

This commit is contained in:
Jack Kingsman
2026-03-18 20:41:19 -07:00
parent 29a76cef96
commit 5b98198c60
2 changed files with 79 additions and 19 deletions
-6
View File
@@ -2738,18 +2738,12 @@ async def _migrate_045_rebuild_contacts_direct_route_columns(conn: aiosqlite.Con
if "direct_path" in columns:
select_expr["direct_path"] = "direct_path"
elif "last_path" in columns:
select_expr["direct_path"] = "last_path"
if "direct_path_len" in columns:
select_expr["direct_path_len"] = "direct_path_len"
elif "last_path_len" in columns:
select_expr["direct_path_len"] = "last_path_len"
if "direct_path_hash_mode" in columns:
select_expr["direct_path_hash_mode"] = "direct_path_hash_mode"
elif "out_path_hash_mode" in columns:
select_expr["direct_path_hash_mode"] = "out_path_hash_mode"
for name in (
"route_override_path",