added su feild to user

This commit is contained in:
David Lenwell 2013-10-30 01:54:33 -07:00
parent 6de1896af0
commit 9a2f0bd340
2 changed files with 26 additions and 1 deletions

View 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')

View File

@ -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