]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add profile block data object
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 3 Dec 2008 22:26:19 +0000 (17:26 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 3 Dec 2008 22:26:19 +0000 (17:26 -0500)
darcs-hash:20081203222619-5ed1f-b313092893c67a3ec1dc92a79aa7fed4ab583729.gz

classes/Profile_block.php [new file with mode: 0644]
classes/laconica.ini
db/laconica.sql

diff --git a/classes/Profile_block.php b/classes/Profile_block.php
new file mode 100644 (file)
index 0000000..f806701
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Table Definition for profile_block
+ */
+require_once 'classes/Memcached_DataObject';
+
+class Profile_block extends Memcached_DataObject 
+{
+    ###START_AUTOCODE
+    /* the code below is auto generated do not remove the above tag */
+
+    public $__table = 'profile_block';                   // table name
+    public $blocker;                         // int(4)  primary_key not_null
+    public $blocked;                         // int(4)  primary_key not_null
+    public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
+
+    /* Static get */
+    function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Profile_block',$k,$v); }
+
+    /* the code above is auto generated do not remove the tag below */
+    ###END_AUTOCODE
+}
index ccf7e2f873de6aed491aa179be5406270eb33770..4f5f9c2e4a8be4fca41b418de45899e3362e63a7 100644 (file)
@@ -195,6 +195,15 @@ modified = 384
 [profile__keys]
 id = N
 
+[profile_block]
+blocker = 129
+blocked = 129
+modified = 384
+
+[profile_block__keys]
+blocker = K
+blocked = K
+
 [profile_tag]
 tagger = 129
 tagged = 129
index 3417ef254d2a5f27e52f8e2c74ad28614428bfd7..50a61c7d9a1de18dcf5b2b569f8257cd80828806 100644 (file)
@@ -357,3 +357,12 @@ create table profile_tag (
    index profile_tag_tagger_tag_idx (tagger, tag)
 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
 
+create table profile_block (
+
+   blocker integer not null comment 'user making the block' references user (id),
+   blocked integer not null comment 'profile that is blocked' references profile (id),
+   modified timestamp comment 'date of blocking',
+
+   constraint primary key (blocker, blocked)
+
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;