Add AUTO_INCREMENT in details dao

This commit is contained in:
edison su 2013-12-03 13:04:35 -08:00 committed by Edison Su
parent a3fade86b2
commit 864c91ba7f
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ ALTER TABLE `cloud`.`load_balancing_rules` ADD COLUMN `lb_protocol` VARCHAR(40);
DROP TABLE IF EXISTS `cloud`.`vm_snapshot_details`;
CREATE TABLE `cloud`.`vm_snapshot_details` (
`id` bigint unsigned UNIQUE NOT NULL,
`id` bigint unsigned UNIQUE NOT NULL AUTO_INCREMENT,
`vm_snapshot_id` bigint unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
@ -54,7 +54,7 @@ CREATE TABLE `cloud`.`vm_snapshot_details` (
DROP TABLE IF EXISTS `cloud`.`snapshot_details`;
CREATE TABLE `cloud`.`snapshot_details` (
`id` bigint unsigned UNIQUE NOT NULL,
`id` bigint unsigned UNIQUE NOT NULL AUTO_INCREMENT,
`snapshot_id` bigint unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,