From 246c0a52373238b329e285db357cfa206389ec8f Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 22 Oct 2025 18:19:46 +0200 Subject: [PATCH] Renames database migration functions. Renames database migration functions to correct a numbering error. The original migration `m002_add_metadata_column` was removed in a previous commit, but the subsequent migrations were not renamed to reflect this, leading to incorrect numbering. This change corrects the function names to ensure proper sequential execution during database migrations. --- migrations.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/migrations.py b/migrations.py index def1667..1525f11 100644 --- a/migrations.py +++ b/migrations.py @@ -116,18 +116,7 @@ async def m001_initial(db): ) -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 '{}'; - """ - ) - - -async def m003_extension_settings(db): +async def m002_extension_settings(db): """ Create extension_settings table for Castle configuration. """ @@ -142,7 +131,7 @@ async def m003_extension_settings(db): ) -async def m004_user_wallet_settings(db): +async def m003_user_wallet_settings(db): """ Create user_wallet_settings table for per-user wallet configuration. """ @@ -157,7 +146,7 @@ async def m004_user_wallet_settings(db): ) -async def m005_manual_payment_requests(db): +async def m004_manual_payment_requests(db): """ Create manual_payment_requests table for user payment requests to Castle. """