Fix m002 migration table name (accounts not castle_accounts)

This commit is contained in:
padreug 2025-11-11 02:05:36 +01:00
parent 15ef3d0df4
commit c35944d51f

View file

@ -341,7 +341,7 @@ async def m002_add_account_is_active(db):
"""
await db.execute(
"""
ALTER TABLE castle_accounts
ALTER TABLE accounts
ADD COLUMN is_active BOOLEAN NOT NULL DEFAULT TRUE
"""
)
@ -349,6 +349,6 @@ async def m002_add_account_is_active(db):
# Create index for faster queries filtering by is_active
await db.execute(
"""
CREATE INDEX idx_castle_accounts_is_active ON castle_accounts (is_active)
CREATE INDEX idx_accounts_is_active ON accounts (is_active)
"""
)