From 7458388b9fc61b1ea5d953a6d733fb373f49c187 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Sun, 7 Sep 2025 17:30:17 +0000 Subject: [PATCH] Add FOLLOW_STUDIES table --- db/schemas/sokwedb/tables/Makefile | 3 +- .../sokwedb/tables/create/follow_studies.m4 | 34 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 db/schemas/sokwedb/tables/create/follow_studies.m4 diff --git a/db/schemas/sokwedb/tables/Makefile b/db/schemas/sokwedb/tables/Makefile index 47b90df..3f3a3ef 100644 --- a/db/schemas/sokwedb/tables/Makefile +++ b/db/schemas/sokwedb/tables/Makefile @@ -26,7 +26,8 @@ ORDER := biography_data \ comm_memb_log \ sightings \ follows \ - follow_observers + follow_observers \ + follow_studies ## ## CAUTION: This Makefile is not designed to be run directly. It is normally diff --git a/db/schemas/sokwedb/tables/create/follow_studies.m4 b/db/schemas/sokwedb/tables/create/follow_studies.m4 new file mode 100644 index 0000000..7e0b685 --- /dev/null +++ b/db/schemas/sokwedb/tables/create/follow_studies.m4 @@ -0,0 +1,34 @@ +dnl Copyright (C) 2025 The Meme Factory, Inc., http://www.karlpinc.com/ +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU Affero General Public License as published +dnl by the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU Affero General Public License for more details. +dnl +dnl You should have received a copy of the GNU Affero General Public License +dnl along with this program. If not, see . +dnl +dnl Karl O. Pinc +dnl +dnl +dnl m4 includes +include(`copyright.m4')dnl +include(`constants.m4')dnl +include(`tablemacros.m4')dnl +include(`grants.m4')dnl +dnl + +CREATE TABLE follow_studies ( + key_column(`FOLLOW_STUDIES', `FSID', INTEGER) + ,fid INTEGER NOT NULL + REFERENCES follows + ,code TEXT NOT NULL + REFERENCES studies +); + +grant_priv(`FOLLOW_STUDIES') -- 2.34.1