Skip to content

Commit

Permalink
feat(db): add observers_txt column to t_base_visit
Browse files Browse the repository at this point in the history
Add revision alembic

Reviewed-by: andriacap
  • Loading branch information
andriacap committed Nov 3, 2023
1 parent 875955d commit dc1c867
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"""add_observers_txt_column_t_base_visit
Revision ID: 8309591841f3
Revises: f1dd984bff97
Create Date: 2023-10-06 11:07:43.532623
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "8309591841f3"
down_revision = "f1dd984bff97"
branch_labels = None
depends_on = None


monitorings_schema = "gn_monitoring"
table = "t_base_visits"
column = "observers_txt"


def upgrade():
op.add_column(
table,
sa.Column(
column,
sa.Text(),
nullable=True,
),
schema=monitorings_schema,
)


def downgrade():
op.drop_column(table, column, schema=monitorings_schema)

0 comments on commit dc1c867

Please sign in to comment.