aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 17:57:06 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 17:57:06 +0000
commit2c9f9360746d9bffa611036a8e955cae988f2dc1 (patch)
treea991d3c07532ceba5911eebe493d66deb4970870 /engine
parentdf1d8b6068b0bd979cf04555cae6285c44531465 (diff)
downloadelgg-2c9f9360746d9bffa611036a8e955cae988f2dc1.tar.gz
elgg-2c9f9360746d9bffa611036a8e955cae988f2dc1.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/schema/mysql.sql15
1 files changed, 13 insertions, 2 deletions
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,
@@ -226,6 +226,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)
--
CREATE TABLE `prefix_api_users` (