Issue 5985: remove the username/removed uniqueness constraint since (a) usernames need to be unique within a domain but not accross domains and (b) the contraint isn't really doing anything at this point. Status 5985: resolved fixed

This commit is contained in:
Kris McQueen 2010-08-26 16:37:04 -07:00
parent c5621b1d31
commit 5536faba5d
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,6 @@ ALTER TABLE `cloud`.`op_vm_host` ADD CONSTRAINT `fk_op_vm_host__id` FOREIGN KEY
ALTER TABLE `cloud`.`user` ADD INDEX `i_user__secret_key_removed`(`secret_key`, `removed`);
ALTER TABLE `cloud`.`user` ADD INDEX `i_user__removed`(`removed`);
ALTER TABLE `cloud`.`user` ADD UNIQUE `i_user__username__removed`(`username`, `removed`);
ALTER TABLE `cloud`.`user` ADD UNIQUE `i_user__api_key`(`api_key`);
ALTER TABLE `cloud`.`user` ADD CONSTRAINT `fk_user__account_id` FOREIGN KEY `fk_user__account_id` (`account_id`) REFERENCES `account` (`id`) ON DELETE CASCADE;
ALTER TABLE `cloud`.`user` ADD INDEX `i_user__account_id`(`account_id`);

View File

@ -0,0 +1,2 @@
ALTER TABLE `cloud`.`user` DROP KEY `i_user__username__removed`;