From 1c338639911bb2f95a301b702e7c8ecfc82a461e Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 18 Nov 2009 10:57:24 -0500 Subject: [PATCH] Change a few foreign keys, this may change behavior of the cloud stuff, needs to be checked. --- lib/galaxy/model/migrate/versions/0026_cloud_tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/model/migrate/versions/0026_cloud_tables.py b/lib/galaxy/model/migrate/versions/0026_cloud_tables.py index 20b04d8c184..605e8ea48a5 100644 --- a/lib/galaxy/model/migrate/versions/0026_cloud_tables.py +++ b/lib/galaxy/model/migrate/versions/0026_cloud_tables.py @@ -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 ),