Skip to content

Commit 879b408

Browse files
committed
DB/ACL: Remove extra UNIQUE keys
1 parent ac023b9 commit 879b408

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

application/modules/install/SQL/fusion_final_full.sql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ CREATE TABLE `acl_account_groups` (
2929
`account_id` int(10) UNSIGNED NOT NULL,
3030
`group_id` int(10) UNSIGNED NOT NULL,
3131
PRIMARY KEY (`account_id`, `group_id`) USING BTREE,
32-
UNIQUE INDEX `account_id_group_id`(`account_id`, `group_id`) USING BTREE,
3332
INDEX `FK__acl_groups`(`group_id`) USING BTREE,
3433
CONSTRAINT `FK__acl_groups` FOREIGN KEY (`group_id`) REFERENCES `acl_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
3534
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=Dynamic;
@@ -47,8 +46,7 @@ CREATE TABLE `acl_account_permissions` (
4746
`permission_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
4847
`module` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
4948
`value` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
50-
PRIMARY KEY (`account_id`) USING BTREE,
51-
UNIQUE INDEX `account_id_permission_id`(`account_id`, `permission_name`, `module`) USING BTREE
49+
PRIMARY KEY (`account_id`, `permission_name`, `module`) USING BTREE
5250
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=Dynamic;
5351

5452
-- ----------------------------

0 commit comments

Comments
 (0)