Skip to content

Commit 1c4c95f

Browse files
committed
snapshot id is unique
1 parent 96ac136 commit 1c4c95f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎setup/db/create-schema.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ CREATE TABLE `cloud`.`volumes` (
326326
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
327327

328328
CREATE TABLE `cloud`.`snapshots` (
329-
`id` bigint unsigned NOT NULL COMMENT 'Primary Key',
329+
`id` bigint unsigned UNIQUE NOT NULL COMMENT 'Primary Key',
330330
`account_id` bigint unsigned NOT NULL COMMENT 'owner. foreign key to account table',
331331
`volume_id` bigint unsigned NOT NULL COMMENT 'volume it belongs to. foreign key to volume table',
332332
`status` varchar(32) COMMENT 'snapshot creation status',

0 commit comments

Comments
 (0)