12 lines
296 B
Python
12 lines
296 B
Python
from tortoise import BaseDBAsyncClient
|
|
|
|
|
|
async def upgrade(db: BaseDBAsyncClient) -> str:
|
|
return """
|
|
CREATE INDEX "idx_user_usernam_9987ab" ON "user" ("username");"""
|
|
|
|
|
|
async def downgrade(db: BaseDBAsyncClient) -> str:
|
|
return """
|
|
DROP INDEX "idx_user_usernam_9987ab";"""
|