summaryrefslogtreecommitdiffhomepage
path: root/apioforum/db.py
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-07-31 19:52:57 +0000
committerubq323 <ubq323>2021-07-31 19:52:57 +0000
commitfd04b1ea444b2b77cb56ed7a67b8ac2225cfa6bd (patch)
tree6be396d85bff918851bf628da8b14e815c7c25c0 /apioforum/db.py
parent3ea7198a166ac161df82a35c135a59bbd67ee645 (diff)
fix typos and syntax errors mainly, i think
Diffstat (limited to 'apioforum/db.py')
-rw-r--r--apioforum/db.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apioforum/db.py b/apioforum/db.py
index d94a707..cfb5646 100644
--- a/apioforum/db.py
+++ b/apioforum/db.py
@@ -139,7 +139,8 @@ INSERT INTO role_config (role,forum) VALUES ("other",1);
"""
CREATE TABLE role_assignments (
user NOT NULL REFERENCES users(username),
- forum NOT NULL REFERENCES forums(id)
+ forum NOT NULL REFERENCES forums(id),
+ role TEXT NOT NULL
);
"""
]