yet another new-sqlalchemy fix, this one post-0.4.2; grr sipb-xen-database/10.34
authorGreg Price <price@mit.edu>
Fri, 24 Oct 2008 03:04:03 +0000 (23:04 -0400)
committerGreg Price <price@mit.edu>
Fri, 24 Oct 2008 03:04:03 +0000 (23:04 -0400)
svn path=/trunk/packages/sipb-xen-database/; revision=1174

debian/changelog
python/database/models.py

index b98b9d6..e3406a8 100644 (file)
@@ -1,3 +1,9 @@
+sipb-xen-database (10.34) unstable; urgency=low
+
+  * yet another new-sqlalchemy fix, this one post-0.4.2
+
+ -- Greg Price <price@mit.edu>  Thu, 23 Oct 2008 23:02:46 -0400
+
 sipb-xen-database (10.33) unstable; urgency=low
 
   * Catch calls to restart Postgres and translate them into a sequential
index df3707f..793bc80 100644 (file)
@@ -74,9 +74,9 @@ autoinstalls_table = Table('autoinstalls', meta,
        Column('mirror', String, nullable=False))
 
 machine_access_table = Table('machine_access', meta,
-       Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=False, index=True),
+       Column('machine_id', Integer, ForeignKey('machines.machine_id', ondelete='CASCADE'), nullable=False, index=True),
        Column('user', String, nullable=False, index=True),
-       PrimaryKeyConstraint('machine_id', 'user', ondelete='CASCADE'))
+       PrimaryKeyConstraint('machine_id', 'user'))
 
 class Machine(object):
     def __repr__(self):