2020-12-15 20:05:29 +01:00
|
|
|
"""empty message
|
|
|
|
|
|
|
|
Revision ID: 105d4c740ad6
|
|
|
|
Revises: 886c92dc6eaa
|
|
|
|
Create Date: 2020-12-15 17:28:56.559801
|
|
|
|
|
|
|
|
"""
|
2021-05-04 00:47:06 +02:00
|
|
|
import datetime
|
|
|
|
|
2020-12-15 20:05:29 +01:00
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2023-05-13 18:53:21 +02:00
|
|
|
from sqlalchemy import orm, text
|
2020-12-15 20:05:29 +01:00
|
|
|
from app.models import User, UserRank
|
|
|
|
|
|
|
|
revision = '105d4c740ad6'
|
|
|
|
down_revision = '886c92dc6eaa'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2023-05-13 18:53:21 +02:00
|
|
|
op.execute(text("COMMIT"))
|
|
|
|
op.execute(text("ALTER TYPE userrank ADD VALUE 'BOT' AFTER 'EDITOR'"))
|
2020-12-15 20:05:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
pass
|