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.
This commit is contained in:
parent
c2d9b39f29
commit
246c0a5237
1 changed files with 3 additions and 14 deletions
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue