from sqlalchemy import *
from migrate import *


meta = MetaData()

def upgrade(migrate_engine):
	meta.bind = migrate_engine
	users = Table('users', meta, autoload=True)
	admin = Column('admin', Boolean())
	admin.create(users)

def downgrade(migrate_engine):
	meta.bind = migrate_engine
	users = Table('users', meta, autoload=True)
	# workaround for sqlite
	# see http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143
	# and http://sqlalchemy-migrate.readthedocs.org/en/v0.7.2/#id10
	if migrate_engine.url.drivername != 'sqlite':
		users.c.admin.drop()


65387ee0821e079f8a73f57da5f5d870904fccef
<mask token>

<mask token>


def upgrade(migrate_engine):
    meta.bind = migrate_engine
    users = Table('users', meta, autoload=True)
    admin = Column('admin', Boolean())
    admin.create(users)


def downgrade(migrate_engine):
    meta.bind = migrate_engine
    users = Table('users', meta, autoload=True)
    if migrate_engine.url.drivername != 'sqlite':
        users.c.admin.drop()

<mask token>
meta = MetaData()


def upgrade(migrate_engine):
    meta.bind = migrate_engine
    users = Table('users', meta, autoload=True)
    admin = Column('admin', Boolean())
    admin.create(users)


def downgrade(migrate_engine):
    meta.bind = migrate_engine
    users = Table('users', meta, autoload=True)
    if migrate_engine.url.drivername != 'sqlite':
        users.c.admin.drop()

from sqlalchemy import *
from migrate import *
meta = MetaData()


def upgrade(migrate_engine):
    meta.bind = migrate_engine
    users = Table('users', meta, autoload=True)
    admin = Column('admin', Boolean())
    admin.create(users)


def downgrade(migrate_engine):
    meta.bind = migrate_engine
    users = Table('users', meta, autoload=True)
    if migrate_engine.url.drivername != 'sqlite':
        users.c.admin.drop()

from sqlalchemy import *
from migrate import *


meta = MetaData()

def upgrade(migrate_engine):
	meta.bind = migrate_engine
	users = Table('users', meta, autoload=True)
	admin = Column('admin', Boolean())
	admin.create(users)

def downgrade(migrate_engine):
	meta.bind = migrate_engine
	users = Table('users', meta, autoload=True)
	# workaround for sqlite
	# see http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143
	# and http://sqlalchemy-migrate.readthedocs.org/en/v0.7.2/#id10
	if migrate_engine.url.drivername != 'sqlite':
		users.c.admin.drop()

