Fix m002 migration table name (accounts not castle_accounts)
This commit is contained in:
parent
15ef3d0df4
commit
c35944d51f
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
"""
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue