summaryrefslogtreecommitdiffhomepage
path: root/apioforum/db.py
diff options
context:
space:
mode:
authorcitrons <citrons>2021-08-05 11:28:53 +0000
committercitrons <citrons>2021-08-05 11:28:53 +0000
commit76cb3a6be912e55ffe7f6e7c221000f57cff6d4a (patch)
tree7b3f47687d9b41e112c15055ea71a279a322ff60 /apioforum/db.py
parentfd04b1ea444b2b77cb56ed7a67b8ac2225cfa6bd (diff)
make many of the permissions do things. somewhat functional menus for role configuration and assignment. big brother thoughtcrime message deletion. mark roles next to usernames on posts. other things I may have forgot
Diffstat (limited to 'apioforum/db.py')
-rw-r--r--apioforum/db.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/apioforum/db.py b/apioforum/db.py
index cfb5646..d501159 100644
--- a/apioforum/db.py
+++ b/apioforum/db.py
@@ -127,6 +127,7 @@ CREATE TABLE role_config (
p_reply_threads INT NOT NULL DEFAULT 1,
p_view_threads INT NOT NULL DEFAULT 1,
p_manage_threads INT NOT NULL DEFAULT 0,
+ p_delete_posts INT NOT NULL DEFAULT 0,
p_vote INT NOT NULL DEFAULT 1,
p_create_polls INT NOT NULL DEFAULT 1,
p_approve INT NOT NULL DEFAULT 0,
@@ -142,6 +143,9 @@ CREATE TABLE role_assignments (
forum NOT NULL REFERENCES forums(id),
role TEXT NOT NULL
);
+""",
+"""
+ALTER TABLE posts ADD COLUMN deleted NOT NULL DEFAULT 0;
"""
]