v0.1.0
This commit is contained in:
32
migrations/versions/95f1a12a7da3_add_is_admin.py
Normal file
32
migrations/versions/95f1a12a7da3_add_is_admin.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""Add is_admin
|
||||
|
||||
Revision ID: 95f1a12a7da3
|
||||
Revises: 5a06403b57cf
|
||||
Create Date: 2024-10-23 09:55:36.772967
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '95f1a12a7da3'
|
||||
down_revision = '5a06403b57cf'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('jellyfin_user', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('is_admin', sa.Boolean(), nullable=False))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('jellyfin_user', schema=None) as batch_op:
|
||||
batch_op.drop_column('is_admin')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user