Adding mkdocs and privileged tools
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from tortoise import BaseDBAsyncClient
|
||||
|
||||
RUN_IN_TRANSACTION = True
|
||||
|
||||
|
||||
async def upgrade(db: BaseDBAsyncClient) -> str:
|
||||
return """
|
||||
ALTER TABLE "users" ADD COLUMN "ldap_groups" JSONB DEFAULT '[]';
|
||||
"""
|
||||
|
||||
|
||||
async def downgrade(db: BaseDBAsyncClient) -> str:
|
||||
return """
|
||||
ALTER TABLE "users" DROP COLUMN "ldap_groups";
|
||||
"""
|
||||
Reference in New Issue
Block a user