mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
snapshot id is unique
This commit is contained in:
parent
96ac136b8c
commit
1c4c95f81f
@ -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',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user