2018-05-31 15:13:31 +01:00
|
|
|
"""
|
|
|
|
|
|
2018-05-31 16:30:14 +01:00
|
|
|
Revision ID: 0197_service_contact_link
|
|
|
|
|
Revises: 0196_complaints_table
|
2018-05-31 15:13:31 +01:00
|
|
|
Create Date: 2018-05-31 15:01:32.977620
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
import sqlalchemy as sa
|
2023-12-08 21:43:52 -05:00
|
|
|
from alembic import op
|
2018-05-31 15:13:31 +01:00
|
|
|
|
2023-08-29 14:54:30 -07:00
|
|
|
revision = "0197_service_contact_link"
|
|
|
|
|
down_revision = "0196_complaints_table"
|
2018-05-31 15:13:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.add_column(
|
|
|
|
|
"services", sa.Column("contact_link", sa.String(length=255), nullable=True)
|
|
|
|
|
)
|
|
|
|
|
op.add_column(
|
|
|
|
|
"services_history",
|
|
|
|
|
sa.Column("contact_link", sa.String(length=255), nullable=True),
|
|
|
|
|
)
|
2018-05-31 15:13:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.drop_column("services_history", "contact_link")
|
|
|
|
|
op.drop_column("services", "contact_link")
|