mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
sql migration
This commit is contained in:
parent
cb2033443c
commit
a37f7fe8b8
1 changed files with 31 additions and 0 deletions
31
migrations/versions/2020_091417_198c3aca9d8d_.py
Normal file
31
migrations/versions/2020_091417_198c3aca9d8d_.py
Normal 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 ###
|
Loading…
Reference in a new issue