2018-07-25 16:20:40 +01:00
|
|
|
"""
|
|
|
|
|
|
2018-07-31 18:01:58 +01:00
|
|
|
Revision ID: 0211_email_branding_update
|
|
|
|
|
Revises: 0210_remove_monthly_billing
|
|
|
|
|
Create Date: 2018-07-31 18:00:20.457755
|
2018-07-25 16:20:40 +01:00
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
from alembic import op
|
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
2018-07-31 18:01:58 +01:00
|
|
|
revision = '0211_email_branding_update'
|
|
|
|
|
down_revision = '0210_remove_monthly_billing'
|
2018-07-25 16:20:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
|
op.add_column('email_branding', sa.Column('text', sa.String(length=255), nullable=True))
|
|
|
|
|
op.execute('UPDATE email_branding SET text = name')
|
2018-08-02 15:55:45 +01:00
|
|
|
|
2018-07-25 16:20:40 +01:00
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
|
op.drop_column('email_branding', 'text')
|