From ceabf96f79a696ed23685575b608559936ee20a3 Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 22 Oct 2025 13:48:51 +0200 Subject: [PATCH] Adds metadata column to entry_lines table Adds a metadata column to the entry_lines table. This column will store currency conversion data as JSON, allowing for future flexibility in handling different types of metadata. --- migrations.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/migrations.py b/migrations.py index e827fc0..4a13dad 100644 --- a/migrations.py +++ b/migrations.py @@ -114,3 +114,14 @@ async def m001_initial(db): """, {"id": acc_id, "name": name, "type": acc_type, "description": desc} ) + + +async def m002_add_metadata_column(db): + """ + Add metadata column to entry_lines table for currency conversion data. + """ + await db.execute( + """ + ALTER TABLE entry_lines ADD COLUMN metadata TEXT DEFAULT '{}'; + """ + )