Skip to content

Commit

Permalink
[Main] add migration for blocked users
Browse files Browse the repository at this point in the history
  • Loading branch information
noahkw committed Feb 2, 2024
1 parent 4f0bccb commit d43543c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions alembic/versions/2f49c0729ee4_add_blocked_users_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""add blocked users model
Revision ID: 2f49c0729ee4
Revises: 95cf9ae2faf5
Create Date: 2024-02-03 00:40:44.361775
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "2f49c0729ee4"
down_revision = "95cf9ae2faf5"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(
"blocked_users",
sa.Column("_guild", sa.BigInteger(), nullable=False),
sa.Column("_user", sa.BigInteger(), nullable=False),
sa.PrimaryKeyConstraint("_guild", "_user"),
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table("blocked_users")
# ### end Alembic commands ###

0 comments on commit d43543c

Please sign in to comment.