From 922dd7518361a491e227be5db23e0e1a154566ff Mon Sep 17 00:00:00 2001
From: icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>
Date: Wed, 12 Mar 2008 10:57:57 +0000
Subject: Marcus Povey <marcus@dushka.co.uk> * object_* changed to entity_* in
 metadata and annotations

git-svn-id: https://code.elgg.org/elgg/trunk@182 36083f99-b078-4883-b0ff-0f9b5a30f544
---
 engine/schema/mysql.sql | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

(limited to 'engine/schema/mysql.sql')

diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index c9fdbfb33..66f1745da 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -181,6 +181,20 @@ CREATE TABLE `prefix_friends` (
   KEY `friend_id` (`friend_id`)
 ) ENGINE=MyISAM;
 
+--
+-- Entity subtypes - lets you subtype one of the main objects (sites/objects/etc)
+--
+CREATE TABLE `prefix_entity_subtypes` (
+	`id` int(11) NOT NULL auto_increment,
+	`entity_id` int(11) NOT NULL,
+	`entity_type` enum ('object', 'user', 'collection', 'site') NOT NULL,
+	
+	`entity_subtype` varchar(50) NOT NULL,
+	
+	PRIMARY KEY (`id`),
+	UNIQUE KEY (`entity_id`,`entity_type`)
+) ENGINE=MyISAM;
+
 -- 
 -- Table structure for annotations
 --
-- 
cgit v1.2.3

