From bdbdfd401b0fcd40244e6aedf2ae853853e75e1a Mon Sep 17 00:00:00 2001 From: Anshul Gangwar Date: Mon, 26 Aug 2013 13:27:56 +0530 Subject: [PATCH] CLOUDSTACK-3806: There was error in host_view sql, it was using host_details.id for join instead host_details.host_id Signed-off-by: Sateesh Chodapuneedi --- setup/db/db/schema-307to410.sql | 2 +- setup/db/db/schema-40to410.sql | 2 +- setup/db/db/schema-410to420.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/db/db/schema-307to410.sql b/setup/db/db/schema-307to410.sql index 70cddfdfbc8..7feb53eb16e 100644 --- a/setup/db/db/schema-307to410.sql +++ b/setup/db/db/schema-307to410.sql @@ -977,7 +977,7 @@ CREATE VIEW `cloud`.`host_view` AS left join `cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id left join - `cloud`.`host_details` ON host.id = host_details.id + `cloud`.`host_details` ON host.id = host_details.host_id and host_details.name = 'guest.os.category.id' left join `cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED) diff --git a/setup/db/db/schema-40to410.sql b/setup/db/db/schema-40to410.sql index f1482f84085..24f6d4c5e19 100644 --- a/setup/db/db/schema-40to410.sql +++ b/setup/db/db/schema-40to410.sql @@ -1073,7 +1073,7 @@ CREATE VIEW `cloud`.`host_view` AS left join `cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id left join - `cloud`.`host_details` ON host.id = host_details.id + `cloud`.`host_details` ON host.id = host_details.host_id and host_details.name = 'guest.os.category.id' left join `cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED) diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql index ec4d472e12a..f51b53ceb3b 100644 --- a/setup/db/db/schema-410to420.sql +++ b/setup/db/db/schema-410to420.sql @@ -976,7 +976,7 @@ CREATE VIEW `cloud`.`host_view` AS left join `cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id left join - `cloud`.`host_details` ON host.id = host_details.id + `cloud`.`host_details` ON host.id = host_details.host_id and host_details.name = 'guest.os.category.id' left join `cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)