Skip to content

Commit

Permalink
database.upgrade:upgrade_3_2to3_3 - fix incorrect column name
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Oct 29, 2024
1 parent e3030fb commit 766910e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acacore/database/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 766910e

Please sign in to comment.