mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 15:22:24 -05:00
28 lines
650 B
Python
28 lines
650 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'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
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)
|