aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_postgres.sql
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-04 16:30:03 -0700
committerredmatrix <git@macgirvin.com>2016-07-04 16:30:03 -0700
commit6bf2e8a1087546a1986adddcdab486af0891383e (patch)
tree13698b3214520952f22d92408b46570cdd2d165b /install/schema_postgres.sql
parent805ecde6a5ce50856e96ea47cba4a02e7848672f (diff)
downloadvolse-hubzilla-6bf2e8a1087546a1986adddcdab486af0891383e.tar.gz
volse-hubzilla-6bf2e8a1087546a1986adddcdab486af0891383e.tar.bz2
volse-hubzilla-6bf2e8a1087546a1986adddcdab486af0891383e.zip
some perms fixes to stuff that was already written before I move on
Diffstat (limited to 'install/schema_postgres.sql')
-rw-r--r--install/schema_postgres.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 378308233..36018de3e 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -888,6 +888,17 @@ CREATE TABLE "pconfig" (
PRIMARY KEY ("id"),
UNIQUE ("uid","cat","k")
);
+create table perm_limits (
+ id serial NOT NULL,
+ perm varchar(64) not null default '',
+ channel_id int(10) unsigned not null default 0,
+ perm_limit int(10) unsigned not null default 0,
+ primary key id
+);
+create index "idx_perm" on perm_limits ("perm");
+create index "idx_channel_id" on perm_limits ("channel_id");
+create index "idx_perm_limit" on perm_limits ("perm_limit");
+
CREATE TABLE "photo" (
"id" serial NOT NULL,
"aid" bigint NOT NULL DEFAULT '0',