summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/Group_block.php23
-rw-r--r--classes/laconica.ini11
-rw-r--r--db/laconica.sql10
3 files changed, 44 insertions, 0 deletions
diff --git a/classes/Group_block.php b/classes/Group_block.php
new file mode 100644
index 000000000..437046a9c
--- /dev/null
+++ b/classes/Group_block.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Table Definition for group_block
+ */
+require_once 'classes/Memcached_DataObject';
+
+class Group_block extends Memcached_DataObject
+{
+ ###START_AUTOCODE
+ /* the code below is auto generated do not remove the above tag */
+
+ public $__table = 'group_block'; // table name
+ public $group_id; // int(4) primary_key not_null
+ public $blocked; // int(4) primary_key not_null
+ public $blocker; // int(4) not_null
+ public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
+
+ /* Static get */
+ function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Group_block',$k,$v); }
+
+ /* the code above is auto generated do not remove the tag below */
+ ###END_AUTOCODE
+}
diff --git a/classes/laconica.ini b/classes/laconica.ini
index 92bbb35d4..8e4e78b79 100644
--- a/classes/laconica.ini
+++ b/classes/laconica.ini
@@ -1,3 +1,4 @@
+
[avatar]
profile_id = 129
original = 17
@@ -157,6 +158,16 @@ id = K
service = K
uri = U
+[group_block]
+group_id = 129
+blocked = 129
+blocker = 129
+modified = 384
+
+[group_block__keys]
+group_id = K
+blocked = K
+
[group_inbox]
group_id = 129
notice_id = 129
diff --git a/db/laconica.sql b/db/laconica.sql
index 7f52a5ef7..bc824fc4d 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -483,3 +483,13 @@ create table file_to_post (
unique(file_id, post_id)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+
+create table group_block (
+ group_id integer not null comment 'group profile is blocked from' references user_group (id),
+ blocked integer not null comment 'profile that is blocked' references profile (id),
+ blocker integer not null comment 'user making the block' references user (id),
+ modified timestamp comment 'date of blocking',
+
+ constraint primary key (group_id, blocked)
+
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;