aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-12 10:57:57 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-12 10:57:57 +0000
commit922dd7518361a491e227be5db23e0e1a154566ff (patch)
treec406078854f26d929c5435d67146bb7d71dcede0
parent2f3dbb62f718fdc5169aed5b1960f2cf4f7dc0a6 (diff)
downloadelgg-922dd7518361a491e227be5db23e0e1a154566ff.tar.gz
elgg-922dd7518361a491e227be5db23e0e1a154566ff.tar.bz2
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
-rw-r--r--engine/schema/mysql.sql14
1 files changed, 14 insertions, 0 deletions
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
--