removed the DEFAULT 0

This commit is contained in:
Alex Huang 2011-04-05 10:15:27 -07:00
parent 61f968592b
commit e4cffa7928
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,