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