diff options
-rw-r--r-- | engine/schema/mysql.sql | 2 | ||||
-rw-r--r-- | mod/test/index.php | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql index 47667bbe0..fa8d0f82f 100644 --- a/engine/schema/mysql.sql +++ b/engine/schema/mysql.sql @@ -221,7 +221,7 @@ CREATE TABLE `prefix_metadata` ( `access_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
- UNIQUE KEY (`object_id`,`object_type`, `name`)
+ UNIQUE KEY (`entity_id`,`object_type`, `name`)
) ENGINE=MyISAM;
diff --git a/mod/test/index.php b/mod/test/index.php index b068c4dd4..e8940c6a4 100644 --- a/mod/test/index.php +++ b/mod/test/index.php @@ -8,6 +8,12 @@ $body = elgg_view("testplugin/pageshell");
page_draw("Test plugin",$body);
-
+ $object = new ElggObject();
+ $object->type = "forum";
+ $object->title = "Howdy!";
+ $object->description = "I am the very model of a modern major general";
+ $object->access = 2;
+ $object->save();
+ $object->setMetadata('parent',0,2);
?>
\ No newline at end of file |