<filename>core/admin/migrations/versions/73e56bad5ec5_.py
""" Add the ability to keep forwarded messages

Revision ID: 7<PASSWORD>
Revises: <PASSWORD>
Create Date: 2017-09-03 15:36:07.821002

"""

# revision identifiers, used by Alembic.
revision = '7<PASSWORD>'
down_revision = '<PASSWORD>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    with op.batch_alter_table('user') as batch:
        batch.add_column(sa.Column('forward_keep', sa.Boolean(), nullable=False, server_default=sa.sql.expression.true()))


def downgrade():
    with op.batch_alter_table('user') as batch:
        batch.drop_column('forward_keep')

<filename>core/admin/migrations/versions/73e56bad5ec5_.py
""" Add the ability to keep forwarded messages

Revision ID: 7<PASSWORD>
Revises: <PASSWORD>
Create Date: 2017-09-03 15:36:07.821002

"""

# revision identifiers, used by Alembic.
revision = '7<PASSWORD>'
down_revision = '<PASSWORD>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    with op.batch_alter_table('user') as batch:
        batch.add_column(sa.Column('forward_keep', sa.Boolean(), nullable=False, server_default=sa.sql.expression.true()))


def downgrade():
    with op.batch_alter_table('user') as batch:
        batch.drop_column('forward_keep')

Add the ability to keep forwarded messages  Revision ID: 7<PASSWORD> Revises: <PASSWORD> Create Date: 2017-09-03 15:36:07.821002 # revision identifiers, used by Alembic.