From 1c4c95f81fe1ffcd9ee34e80cd7cdf6a47a9dc7c Mon Sep 17 00:00:00 2001 From: anthony Date: Fri, 3 Dec 2010 12:13:54 -0800 Subject: [PATCH] snapshot id is unique --- setup/db/create-schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/db/create-schema.sql b/setup/db/create-schema.sql index 9fc3695216f..f06c596b58d 100755 --- a/setup/db/create-schema.sql +++ b/setup/db/create-schema.sql @@ -326,7 +326,7 @@ CREATE TABLE `cloud`.`volumes` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `cloud`.`snapshots` ( - `id` bigint unsigned NOT NULL COMMENT 'Primary Key', + `id` bigint unsigned UNIQUE NOT NULL COMMENT 'Primary Key', `account_id` bigint unsigned NOT NULL COMMENT 'owner. foreign key to account table', `volume_id` bigint unsigned NOT NULL COMMENT 'volume it belongs to. foreign key to volume table', `status` varchar(32) COMMENT 'snapshot creation status',