Files
notifications-api/migrations/versions/0108_change_logo_not_nullable.py
Cliff Hill 1157f5639d black, isort, flake8
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-12-08 21:43:52 -05:00

28 lines
618 B
Python

"""empty message
Revision ID: 0108_change_logo_not_nullable
Revises: 0107_drop_template_stats
Create Date: 2017-07-06 10:14:35.188404
"""
# revision identifiers, used by Alembic.
revision = "0108_change_logo_not_nullable"
down_revision = "0107_drop_template_stats"
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
def upgrade():
op.alter_column(
"organisation", "logo", existing_type=sa.VARCHAR(length=255), nullable=False
)
def downgrade():
op.alter_column(
"organisation", "logo", existing_type=sa.VARCHAR(length=255), nullable=True
)