- repository reorganization
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/trunk@242 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
parent
5c1a97e82d
commit
dea15a6c4f
29 changed files with 1053 additions and 0 deletions
17
testdb/dbschema/gnuviechadmin/versions/3/3.py
Normal file
17
testdb/dbschema/gnuviechadmin/versions/3/3.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
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()
|
Loading…
Add table
Add a link
Reference in a new issue