Added admin-option to delete an account

This commit is contained in:
Mawoka
2023-02-18 12:00:57 +01:00
parent 1d44057ab4
commit 5947c7aade
5 changed files with 65 additions and 4 deletions
@@ -0,0 +1,25 @@
"""Added custom_openid
Revision ID: 7afe98d04169
Revises: 438516c09cf3
Create Date: 2023-02-17 15:10:00.158320
"""
from alembic import op
import sqlalchemy as sa
import ormar
# revision identifiers, used by Alembic.
revision = "7afe98d04169"
down_revision = "438516c09cf3"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.execute("ALTER TYPE userauthtypes ADD VALUE 'CUSTOM';")
def downgrade() -> None:
op.execute("ALTER TYPE userauthtypes DROP VALUE 'CUSTOM';")