sql migration

This commit is contained in:
Son NK 2020-09-14 18:22:35 +02:00
parent cb2033443c
commit a37f7fe8b8
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
"""empty message
Revision ID: 198c3aca9d8d
Revises: b0e9a389939a
Create Date: 2020-09-14 17:55:47.322585
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '198c3aca9d8d'
down_revision = 'b0e9a389939a'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('contact', sa.Column('from_header', sa.Text(), nullable=True))
op.add_column('contact', sa.Column('mail_from', sa.Text(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('contact', 'mail_from')
op.drop_column('contact', 'from_header')
# ### end Alembic commands ###