CLOUDSTACK-1373: Fix regression in db-schema due to recent branch merges

related to commit 5f8a2ee9be490f7ecf7ada2e0847e76ac5b81fed. The field 
image_data_store_id should not be used in templates.sql as  it does not exist 
yet. Should be filled during the upgrade from 4.1 to 4.2, but i'm leaving that 
to Edison.

Signed-off-by: Hugo Trippaers <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/1ad363e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/1ad363e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/1ad363e4

Branch: refs/heads/cisco-vnmc-api-integration
Commit: 1ad363e44a97dbd0ed146b13af0613b2b6b5e341
Parents: 6250c85
Author: Hugo Trippaers <[email protected]>
Authored: Fri Feb 22 16:22:17 2013 +0100
Committer: Hugo Trippaers <[email protected]>
Committed: Fri Feb 22 16:22:17 2013 +0100

----------------------------------------------------------------------
 setup/db/templates.sql |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1ad363e4/setup/db/templates.sql
----------------------------------------------------------------------
diff --git a/setup/db/templates.sql b/setup/db/templates.sql
index 7abc92d..6f34d66 100755
--- a/setup/db/templates.sql
+++ b/setup/db/templates.sql
@@ -15,28 +15,28 @@
 -- specific language governing permissions and limitations
 -- under the License.
 
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type, 
image_data_store_id)
-    VALUES (1, UUID(), 'routing-1', 'SystemVM Template (XenServer)', 0, now(), 
'SYSTEM', 0, 64, 1, 
'http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2', 
'f613f38c96bf039f2e5cbf92fa8ad4f8', 0, 'SystemVM Template (XenServer)', 'VHD', 
133, 0, 1, 'XenServer', 1);
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, removed, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text,  format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable, image_data_store_id)
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type)
+    VALUES (1, UUID(), 'routing-1', 'SystemVM Template (XenServer)', 0, now(), 
'SYSTEM', 0, 64, 1, 
'http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2', 
'f613f38c96bf039f2e5cbf92fa8ad4f8', 0, 'SystemVM Template (XenServer)', 'VHD', 
133, 0, 1, 'XenServer' );
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, removed, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text,  format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable)
     VALUES (2, UUID(), 'centos53-x86_64', 'CentOS 5.3(64-bit) no GUI 
(XenServer)', 1, now(), now(), 'BUILTIN', 0, 64, 1, 
'http://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2',
 'b63d854a9560c013142567bbae8d98cf', 0, 'CentOS 5.3(64-bit) no GUI 
(XenServer)', 'VHD', 12, 1, 1, 'XenServer', 1, 1);
 
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type, 
image_data_store_id)
-    VALUES (3, UUID(), 'routing-3', 'SystemVM Template (KVM)', 0, now(), 
'SYSTEM', 0, 64, 1, 
'http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2', 
'2755de1f9ef2ce4d6f2bee2efbb4da92', 0, 'SystemVM Template (KVM)', 'QCOW2', 15, 
0, 1, 'KVM', 1);
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type)
+    VALUES (3, UUID(), 'routing-3', 'SystemVM Template (KVM)', 0, now(), 
'SYSTEM', 0, 64, 1, 
'http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2', 
'2755de1f9ef2ce4d6f2bee2efbb4da92', 0, 'SystemVM Template (KVM)', 'QCOW2', 15, 
0, 1, 'KVM' );
 
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, display_text, 
enable_password, format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable, image_data_store_id)
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, display_text, 
enable_password, format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable)
     VALUES (4, UUID(), 'centos55-x86_64', 'CentOS 5.5(64-bit) no GUI (KVM)', 
1, now(), 'BUILTIN', 0, 64, 1, 
'http://download.cloud.com/releases/2.2.0/eec2209b-9875-3c8d-92be-c001bd8a0faf.qcow2.bz2',
 'ed0e788280ff2912ea40f7f91ca7a249', 'CentOS 5.5(64-bit) no GUI (KVM)', 0, 
'QCOW2', 112, 1, 1, 'KVM', 1, 1);
 
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text,  format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable, image_data_store_id)
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text,  format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable)
     VALUES (5, UUID(), 'centos56-x86_64-xen', 'CentOS 5.6(64-bit) no GUI 
(XenServer)', 1, now(), 'BUILTIN', 0, 64, 1, 
'http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2', 
'905cec879afd9c9d22ecc8036131a180', 0, 'CentOS 5.6(64-bit) no GUI (XenServer)', 
'VHD', 12, 1, 1, 'XenServer', 1, 1);
 
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text,  format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable, image_data_store_id)
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text,  format, guest_os_id, featured, cross_zones, hypervisor_type, 
extractable)
     VALUES (7, UUID(), 'centos53-x64', 'CentOS 5.3(64-bit) no GUI (vSphere)', 
1, now(), 'BUILTIN', 0, 64, 1, 
'http://download.cloud.com/releases/2.2.0/CentOS5.3-x86_64.ova', 
'f6f881b7f2292948d8494db837fe0f47', 0, 'CentOS 5.3(64-bit) no GUI (vSphere)', 
'OVA', 12, 1, 1, 'VMware', 1, 1);
 
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type, 
image_data_store_id)
-    VALUES (8, UUID(), 'routing-8', 'SystemVM Template (vSphere)', 0, now(), 
'SYSTEM', 0, 32, 1, 
'http://download.cloud.com/templates/burbank/burbank-systemvm-08012012.ova', 
'7137e453f950079ea2ba6feaafd939e8', 0, 'SystemVM Template (vSphere)', 'OVA', 
15, 0, 1, 'VMware', 1);
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type)
+    VALUES (8, UUID(), 'routing-8', 'SystemVM Template (vSphere)', 0, now(), 
'SYSTEM', 0, 32, 1, 
'http://download.cloud.com/templates/burbank/burbank-systemvm-08012012.ova', 
'7137e453f950079ea2ba6feaafd939e8', 0, 'SystemVM Template (vSphere)', 'OVA', 
15, 0, 1, 'VMware' );
 
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type, 
image_data_store_id)
-    VALUES (9, UUID(), 'routing-9', 'SystemVM Template (HyperV)', 0, now(), 
'SYSTEM', 0, 32, 1, 
'http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2', 
'f613f38c96bf039f2e5cbf92fa8ad4f8', 0, 'SystemVM Template (HyperV)', 'VHD', 15, 
0, 1, 'Hyperv', 1);
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, 
created, type, hvm, bits, account_id, url, checksum, enable_password, 
display_text, format, guest_os_id, featured, cross_zones, hypervisor_type)
+    VALUES (9, UUID(), 'routing-9', 'SystemVM Template (HyperV)', 0, now(), 
'SYSTEM', 0, 32, 1, 
'http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2', 
'f613f38c96bf039f2e5cbf92fa8ad4f8', 0, 'SystemVM Template (HyperV)', 'VHD', 15, 
0, 1, 'Hyperv' );
 
 INSERT INTO `cloud`.`guest_os_category` (id, uuid, name) VALUES (1, UUID(), 
'CentOS');
 INSERT INTO `cloud`.`guest_os_category` (id, uuid, name) VALUES (2, UUID(), 
'Debian');

Reply via email to