aboutsummaryrefslogtreecommitdiff
path: root/engine/schema
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-13 11:20:31 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-13 11:20:31 +0000
commitb64528f58046bb08d64ba1cab8b367e1aaa44433 (patch)
treeda03b51756b29ef3a923ad191d7222f45274c8f6 /engine/schema
parent6aa390385b179905b4dceca07ff8fea77d1dd669 (diff)
downloadelgg-b64528f58046bb08d64ba1cab8b367e1aaa44433.tar.gz
elgg-b64528f58046bb08d64ba1cab8b367e1aaa44433.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Made subtype a unique key git-svn-id: https://code.elgg.org/elgg/trunk@192 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/schema')
-rw-r--r--engine/schema/mysql.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index 9caa2a81e..fb979d3a9 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -39,7 +39,8 @@ CREATE TABLE `prefix_entity_subtypes` (
`subtype` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY (`guid`)
+ UNIQUE KEY (`guid`),
+ UNIQUE KEY (`subtype`)
) ENGINE=MyISAM;
-- Describe relationships between entities, can describe friendships but also site membership, depending on context