snapshot id is unique

This commit is contained in:
anthony 2010-12-03 12:13:54 -08:00
parent 96ac136b8c
commit 1c4c95f81f

View File

@ -326,7 +326,7 @@ CREATE TABLE `cloud`.`volumes` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `cloud`.`snapshots` ( 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', `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', `volume_id` bigint unsigned NOT NULL COMMENT 'volume it belongs to. foreign key to volume table',
`status` varchar(32) COMMENT 'snapshot creation status', `status` varchar(32) COMMENT 'snapshot creation status',