added su feild to user
This commit is contained in:
parent
6de1896af0
commit
9a2f0bd340
25
alembic/versions/5a5148d89f90_added_su_field_to_us.py
Normal file
25
alembic/versions/5a5148d89f90_added_su_field_to_us.py
Normal file
@ -0,0 +1,25 @@
|
||||
"""added su field to user
|
||||
|
||||
Revision ID: 5a5148d89f90
|
||||
Revises: 2bad1445cf30
|
||||
Create Date: 2013-10-30 01:39:37.546697
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '5a5148d89f90'
|
||||
down_revision = '2bad1445cf30'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('user', sa.Column('su', sa.Boolean()))
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('user', 'su')
|
@ -51,7 +51,7 @@ class User(Base):
|
||||
email_verified = Column(Boolean)
|
||||
openid = Column(String(200), unique=True)
|
||||
authorized = Column(Boolean, default=False)
|
||||
|
||||
su = Column(Boolean, default=False)
|
||||
|
||||
def __init__(self, name, email, openid):
|
||||
self.name = name
|
||||
|
Loading…
x
Reference in New Issue
Block a user