Change a few foreign keys, this may change behavior of the cloud stuff, needs to be checked.

This commit is contained in:
James Taylor
2009-11-18 10:57:24 -05:00
parent 5b6aeb3231
commit 1c33863991
@@ -56,7 +56,7 @@ CloudInstance_table = Table( "cloud_instance", metadata,
Column( "type", TEXT ),
Column( "reservation_id", TEXT ),
Column( "instance_id", TEXT ),
Column( "mi_id", TEXT, ForeignKey( "cloud_image.image_id" ), index=True ),
Column( "mi_id", TEXT, ForeignKey( "cloud_image.id" ), index=True ),
Column( "state", TEXT ),
Column( "error", TEXT ),
Column( "public_dns", TEXT ),
@@ -74,7 +74,7 @@ CloudStore_table = Table( "cloud_store", metadata,
Column( "volume_id", TEXT ),
Column( "size", Integer, nullable=False ),
Column( "availability_zone", TEXT ),
Column( "i_id", TEXT, ForeignKey( "cloud_instance.instance_id" ) ),
Column( "i_id", TEXT, ForeignKey( "cloud_instance.id" ) ),
Column( "status", TEXT ),
Column( "device", TEXT ),
Column( "space_consumed", Integer ),