From 766910ef70636bc46eacd75df868bf6102e8fec7 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Tue, 29 Oct 2024 12:44:00 +0100 Subject: [PATCH] database.upgrade:upgrade_3_2to3_3 - fix incorrect column name --- acacore/database/upgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acacore/database/upgrade.py b/acacore/database/upgrade.py index f866436..9d9b584 100644 --- a/acacore/database/upgrade.py +++ b/acacore/database/upgrade.py @@ -219,8 +219,8 @@ def convert_action_data(data: dict) -> dict: def upgrade_3_2to3_3(conn: Connection) -> Version: if not conn.execute("select 1 from pragma_table_info('Files') where name = 'original_name'").fetchone(): conn.execute("alter table Files add column original_name text not null default ''") - if not conn.execute("select 1 from pragma_table_info('Files') where name = 'processed_name'").fetchone(): - conn.execute("alter table Files add column processed_name text default '[]'") + if not conn.execute("select 1 from pragma_table_info('Files') where name = 'processed_names'").fetchone(): + conn.execute("alter table Files add column processed_names text default '[]'") def _find_original_name(uuid: str, relative_path: str) -> str: original_path: Path = Path(relative_path)