diff --git a/setup/db/create-schema.sql b/setup/db/create-schema.sql index 65a8c463fc5..ddad7391e0b 100755 --- a/setup/db/create-schema.sql +++ b/setup/db/create-schema.sql @@ -870,7 +870,7 @@ CREATE TABLE `cloud`.`domain_router` ( `public_netmask` varchar(15) COMMENT 'netmask used for the domR', `guest_netmask` varchar(15) COMMENT 'netmask used for the guest network', `guest_ip_address` char(40) COMMENT ' ip address in the guest network', - `network_id` bigint unsigned NOT NULL DEFAULT 0 COMMENT 'network configuration that this domain router belongs to', + `network_id` bigint unsigned NOT NULL COMMENT 'network configuration that this domain router belongs to', `role` varchar(64) NOT NULL COMMENT 'type of role played by this router', PRIMARY KEY (`id`), CONSTRAINT `fk_domain_router__id` FOREIGN KEY `fk_domain_router__id` (`id`) REFERENCES `vm_instance`(`id`) ON DELETE CASCADE diff --git a/setup/db/db/schema-21to22.sql b/setup/db/db/schema-21to22.sql index 26454f13f84..47c58eb714a 100755 --- a/setup/db/db/schema-21to22.sql +++ b/setup/db/db/schema-21to22.sql @@ -335,7 +335,7 @@ CREATE TABLE `cloud`.`user_vm_details` ( ALTER TABLE `cloud`.`domain_router` MODIFY COLUMN `guest_netmask` varchar(15); ALTER TABLE `cloud`.`domain_router` MODIFY COLUMN `guest_ip_address` varchar(15); -ALTER TABLE `cloud`.`domain_router` ADD COLUMN `network_id` bigint unsigned NOT NULL DEFAULT 0; +ALTER TABLE `cloud`.`domain_router` ADD COLUMN `network_id` bigint unsigned NOT NULL; CREATE TABLE `cloud`.`upload` ( `id` bigint unsigned NOT NULL auto_increment,