aboutsummaryrefslogtreecommitdiff
path: root/migrations/auth/20230207_01_r0bkZ-create-group-join-requests-table.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-09-07 15:49:00 +0300
committerFrederick Muriuki Muriithi2023-10-10 11:12:40 +0300
commit0a8279891190e49867d3a1d72db0f7c7cd275646 (patch)
tree9acceecfcf2667abeaac743e4c7f5139fd5e0afd /migrations/auth/20230207_01_r0bkZ-create-group-join-requests-table.py
parente4af0bbac585b46a5d6303d752cea18ca527d676 (diff)
downloadgenenetwork3-0a8279891190e49867d3a1d72db0f7c7cd275646.tar.gz
Remove authentication from GN3
Authentication should be handled by the auth server (gn-auth) and thus, this commit removes code handling user authentication from the GN3 system.
Diffstat (limited to 'migrations/auth/20230207_01_r0bkZ-create-group-join-requests-table.py')
-rw-r--r--migrations/auth/20230207_01_r0bkZ-create-group-join-requests-table.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/migrations/auth/20230207_01_r0bkZ-create-group-join-requests-table.py b/migrations/auth/20230207_01_r0bkZ-create-group-join-requests-table.py
deleted file mode 100644
index ceae5ea..0000000
--- a/migrations/auth/20230207_01_r0bkZ-create-group-join-requests-table.py
+++ /dev/null
@@ -1,29 +0,0 @@
-"""
-Create group_requests table
-"""
-
-from yoyo import step
-
-__depends__ = {'20230116_01_KwuJ3-rework-privileges-schema'}
-
-steps = [
- step(
- """
- CREATE TABLE IF NOT EXISTS group_join_requests(
- request_id TEXT NOT NULL,
- group_id TEXT NOT NULL,
- requester_id TEXT NOT NULL,
- timestamp REAL NOT NULL,
- status TEXT NOT NULL DEFAULT 'PENDING',
- message TEXT,
- PRIMARY KEY(request_id, group_id),
- FOREIGN KEY(group_id) REFERENCES groups(group_id)
- ON UPDATE CASCADE ON DELETE CASCADE,
- FOREIGN KEY (requester_id) REFERENCES users(user_id)
- ON UPDATE CASCADE ON DELETE CASCADE,
- UNIQUE(group_id, requester_id),
- CHECK (status IN ('PENDING', 'ACCEPTED', 'REJECTED'))
- ) WITHOUT ROWID
- """,
- "DROP TABLE IF EXISTS group_join_requests")
-]