From 67ee5af41848356d7511f9d5ac26d82f454e423e Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Wed, 13 May 2026 17:52:36 +0000 Subject: [PATCH] Create and document the AGG_SEVERITIES table --- db/schemas/codes/tables/Makefile | 3 +- .../codes/tables/create/agg_severities.m4 | 28 ++++++++++++ doc/src/code_tables.m4 | 43 +++++++++++++++++++ doc/src/epilog.inc.m4 | 4 ++ 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 db/schemas/codes/tables/create/agg_severities.m4 diff --git a/db/schemas/codes/tables/Makefile b/db/schemas/codes/tables/Makefile index 6a4c665..59cf842 100644 --- a/db/schemas/codes/tables/Makefile +++ b/db/schemas/codes/tables/Makefile @@ -20,7 +20,8 @@ # This determines the order in which the tables are put into the database. # This is important because the tables containing foreign keys must be put # into the database after the tables they reference. -ORDER := arrival_sources \ +ORDER := agg_severities \ + arrival_sources \ certainties \ comm_ids \ comm_membs_sources \ diff --git a/db/schemas/codes/tables/create/agg_severities.m4 b/db/schemas/codes/tables/create/agg_severities.m4 new file mode 100644 index 0000000..cbe2145 --- /dev/null +++ b/db/schemas/codes/tables/create/agg_severities.m4 @@ -0,0 +1,28 @@ +dnl Copyright (C) 2026 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 + +support_table(`AGG_SEVERITIES', `Severity', `TEXT', ` + emptytext_check(`Severity')' +) diff --git a/doc/src/code_tables.m4 b/doc/src/code_tables.m4 index c7aebc8..8a078a8 100644 --- a/doc/src/code_tables.m4 +++ b/doc/src/code_tables.m4 @@ -39,6 +39,49 @@ Code tables generally, but not always, have a ``Description`` column. :depth: 2 +.. _AGG_SEVERITIES: + +AGG_SEVERITIES (AGGression SEVERITIES) +-------------------------------------- +.. |AGG_SEVERITIES_summary| replace:: + Each row represents an aggression severity category. + +|AGG_SEVERITIES_summary| + +.. _AGG_SEVERITIES_special_values: + +Special Values +`````````````` + +None. + + +Column Descriptions +``````````````````` + +.. _AGG_SEVERITIES.Severity: + +Severity +'''''''' + +.. |AGG_SEVERITIES.Severity_summary| replace:: + A short sequence of characters which identify a level of aggression + severity. + +|AGG_SEVERITIES.Severity_summary| |caseuniquekeycol| + + +.. _AGG_SEVERITIES.Description: + +Description +''''''''''' + +.. |AGG_SEVERITIES.Description_summary| replace:: + A description of the aggression severity level. + +|AGG_SEVERITIES.Description_summary| |emptytext| |notnull| + + .. _ARRIVAL_SOURCES: ARRIVAL_SOURCES (Sources of Arrival and departure data) diff --git a/doc/src/epilog.inc.m4 b/doc/src/epilog.inc.m4 index f4cdd9c..bfe40bd 100644 --- a/doc/src/epilog.inc.m4 +++ b/doc/src/epilog.inc.m4 @@ -51,6 +51,10 @@ sdb_generated_rst()dnl the section heading and still get a link label with the name of the table or column. +.. |AGG_SEVERITIES| replace:: :ref:`AGG_SEVERITIES ` +.. |AGG_SEVERITIES.Severity| replace:: + :ref:`Severity ` + .. |AGGRESSION_EVENT_LOG| replace:: :ref:`AGGRESSION_EVENT_LOG ` .. |AGGRESSION_EVENT_LOG.ID| -- 2.34.1