Skip to content

Commit

Permalink
Add migration to create feature.first_party column
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Jun 23, 2023
1 parent ab30f3f commit a59ced1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions h/migrations/versions/7d39ade34b69_add_feature_first_party.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""Add feature.first_party column."""
import sqlalchemy as sa
from alembic import op

revision = "7d39ade34b69"
down_revision = "be612e693243"


def upgrade():
op.add_column(
"feature",
sa.Column(
"first_party",
sa.Boolean,
nullable=False,
server_default=sa.sql.expression.false(),
),
)


def downgrade():
op.drop_column("feature", "first_party")

0 comments on commit a59ced1

Please sign in to comment.