mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 01:32:20 -05:00
28 lines
618 B
Python
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
|
|
)
|