Jan Dittberner
09180938f1
* make code PEP8 clean (addresses #18) * add copyright information to all python files git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/trunk@257 a67ec6bc-e5d5-0310-a910-815c51eb3124
19 lines
463 B
Python
19 lines
463 B
Python
from sqlalchemy import *
|
|
from migrate import *
|
|
import migrate.changeset
|
|
|
|
meta = BoundMetaData(migrate_engine)
|
|
sysuser = Table('sysuser', meta, autoload = True)
|
|
domains = Table('domains', meta, autoload = True)
|
|
sysuidrefcol = Column('sysuserid', Integer,
|
|
ForeignKey('sysuser.sysuserid'),
|
|
nullable = False)
|
|
|
|
|
|
def upgrade():
|
|
sysuidrefcol.create(domains)
|
|
|
|
|
|
def downgrade():
|
|
col = domains.c.sysuserid
|
|
col.drop()
|