Skip to content

Commit

Permalink
Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
JrooTJunior committed Dec 12, 2021
1 parent 68098e9 commit 092f347
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions migrations/versions/9d333f105ea0_added_additional_chat_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""Added additional chat settings
Revision ID: 9d333f105ea0
Revises: c639acad707a
Create Date: 2021-12-12 19:59:22.610129
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '9d333f105ea0'
down_revision = 'c639acad707a'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('chats', sa.Column('report_to_admins', sa.Boolean(), server_default=sa.text('true'), nullable=True))
op.add_column('chats', sa.Column('restrict_commands', sa.Boolean(), server_default=sa.text('true'), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('chats', 'restrict_commands')
op.drop_column('chats', 'report_to_admins')
# ### end Alembic commands ###

0 comments on commit 092f347

Please sign in to comment.