Skip to content

Commit

Permalink
Adds migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed Sep 11, 2023
1 parent 394b567 commit 94f1b0f
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""Adds initial canary support to signals
Revision ID: e151962478b3
Revises: 4e57f5b1f3f3
Create Date: 2023-09-11 14:28:36.030592
"""
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = "e151962478b3"
down_revision = "4e57f5b1f3f3"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("signal_instance", sa.Column("canary", sa.Boolean(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("signal_instance", "canary")
# ### end Alembic commands ###

0 comments on commit 94f1b0f

Please sign in to comment.