Skip to content

Commit e5f59a3

Browse files
committed
revert changes to create-schema-premium.sql
1 parent 37ffb5a commit e5f59a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup/db/create-schema-premium.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ CREATE TABLE `cloud_usage`.`usage_vm_instance` (
7070
`template_id` bigint unsigned NOT NULL,
7171
`hypervisor_type` varchar(255),
7272
`start_date` DATETIME NOT NULL,
73-
`end_date` DATETIME NULL
73+
`end_date` DATETIME NULL,
74+
UNIQUE KEY (`vm_instance_id`, `usage_type`, `start_date`)
7475
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
7576

7677
ALTER TABLE `cloud_usage`.`usage_vm_instance` ADD INDEX `i_usage_vm_instance__account_id`(`account_id`);

0 commit comments

Comments
 (0)