From 3d2fefabdd12e3a84067a3d5d02d664aad7ce2d6 Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Wed, 2 Jan 2013 17:01:23 +0100 Subject: [PATCH] db / upgrade: Add columns to sync_queue and sync_queue_item These columns were not added by the upgrade from 4.0 to 4.1 causing SQL-errors These columns are present in create-schema.sql, so by adding them here the upgrade also works to 4.1 --- setup/db/db/schema-40to410.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/db/db/schema-40to410.sql b/setup/db/db/schema-40to410.sql index 73289bca35b..b09ebb94fea 100644 --- a/setup/db/db/schema-40to410.sql +++ b/setup/db/db/schema-40to410.sql @@ -60,3 +60,8 @@ ALTER TABLE `cloud`.`network_offerings` ADD COLUMN `eip_associate_public_ip` int INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Network','DEFAULT','NetworkManager','network.dhcp.nondefaultnetwork.setgateway.guestos','Windows','The guest OS\'s name start with this fields would result in DHCP server response gateway information even when the network it\'s on is not default network. Names are separated by comma.'); +ALTER TABLE `sync_queue` ADD `queue_size` SMALLINT NOT NULL DEFAULT '0' COMMENT 'number of items being processed by the queue'; + +ALTER TABLE `sync_queue` ADD `queue_size_limit` SMALLINT NOT NULL DEFAULT '1' COMMENT 'max number of items the queue can process concurrently'; + +ALTER TABLE `sync_queue_item` ADD `queue_proc_time` DATETIME NOT NULL COMMENT 'when processing started for the item' AFTER `queue_proc_number`;