From 2c9f9360746d9bffa611036a8e955cae988f2dc1 Mon Sep 17 00:00:00 2001
From: icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>
Date: Mon, 10 Mar 2008 17:57:06 +0000
Subject: Marcus Povey <marcus@dushka.co.uk> * Changed metadata database to use
 metastrings as described (all values in metadata are now storing data only
 once)

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

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

diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index dff19be35..0170b5aef 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -206,13 +206,13 @@ CREATE TABLE `prefix_annotations` (
 -- Table structure for metadata
 --
 CREATE TABLE `prefix_metadata` (
-	`id` int(11) NOT NULL auto_increment,
+	`id` int(11) NOT NULL auto_increment,motion netcam
 	
 	`object_id` int(11) NOT NULL,
 	`object_type` enum ('object', 'user', 'collection', 'site') NOT NULL,
 	
 	`name` varchar(255) NOT NULL,
-	`value` text NOT NULL,
+	`value` int(11) NOT NULL,
 	`value_type` enum ('integer','tag','text','file') NOT NULL,
 	
 	`owner_id` int(11) NOT NULL,
@@ -225,6 +225,17 @@ CREATE TABLE `prefix_metadata` (
 	
 ) ENGINE=MyISAM;
 
+--
+-- Meta strings table
+--
+CREATE TABLE `prefix_metastrings` (
+	`id` int(11) NOT NULL auto_increment,
+	`value` text NOT NULL,
+	
+	PRIMARY KEY (`id`),
+	UNIQUE KEY `value`
+) ENGINE=MyISAM;
+
 --
 -- API Users - Users who have access to the api (may not be real users)
 --
-- 
cgit v1.2.3

