Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
添加上个版本的数据库迁移文件
  • Loading branch information
airingursb committed Mar 2, 2016
1 parent 23ddfa9 commit 1fe3e30
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions migrations/versions/0910d83a8c4d_version1_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""version1.1
Revision ID: 0910d83a8c4d
Revises: ccdfdabcb326
Create Date: 2016-03-02 16:40:42.592078
"""

# revision identifiers, used by Alembic.
revision = '0910d83a8c4d'
down_revision = 'ccdfdabcb326'

from alembic import op
import sqlalchemy as sa


def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('confirmed', sa.Boolean(), nullable=True))
### end Alembic commands ###


def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'confirmed')
### end Alembic commands ###

0 comments on commit 1fe3e30

Please sign in to comment.