sokwedb
2 months agoIntroduce a role_owner group into the PG permission system
Karl O. Pinc [Tue, 21 Jan 2025 20:31:31 +0000 (14:31 -0600)]
Introduce a role_owner group into the PG permission system

This new role is used to assign permissions.  (The permissions granted
by membership in other roles.)  This prevents users from losing their
permissions when the creating role is dropped, as when an
administrator leaves.  It pushes the chicken-and-egg problem back to
the administrator level.  This is then handled by saying in the docs:
"Don't use a role that will go away when creating administrators."

2 months agoImprove documentation
Karl O. Pinc [Tue, 21 Jan 2025 20:30:44 +0000 (14:30 -0600)]
Improve documentation

2 months agoAdd a target to create a Postgres cluster
Karl O. Pinc [Tue, 21 Jan 2025 20:29:14 +0000 (14:29 -0600)]
Add a target to create a Postgres cluster

Not needed when using cloud hosting, but handy to have.

2 months agoUse correct dependencies when files are generated
Karl O. Pinc [Tue, 21 Jan 2025 20:27:38 +0000 (14:27 -0600)]
Use correct dependencies when files are generated

2 months agoUse a UTF-8 encoding for the db, with C collation
Karl O. Pinc [Tue, 21 Jan 2025 20:25:04 +0000 (14:25 -0600)]
Use a UTF-8 encoding for the db, with C collation

2 months agoBetter describe timestamp put on doc pages
Karl O. Pinc [Mon, 6 Jan 2025 20:39:49 +0000 (14:39 -0600)]
Better describe timestamp put on doc pages

2 months agoFix indentation of Makefile's in-line docs
Karl O. Pinc [Mon, 6 Jan 2025 20:26:56 +0000 (14:26 -0600)]
Fix indentation of Makefile's in-line docs

2 months agoDelete files generated by cluster code when cleaning
Karl O. Pinc [Mon, 6 Jan 2025 20:22:53 +0000 (14:22 -0600)]
Delete files generated by cluster code when cleaning

2 months agoProperly clean the generated dropviews.sql file
Karl O. Pinc [Sat, 4 Jan 2025 23:00:26 +0000 (17:00 -0600)]
Properly clean the generated dropviews.sql file

2 months agoFix to drop all biography_data indexes
Karl O. Pinc [Sat, 4 Jan 2025 22:42:37 +0000 (16:42 -0600)]
Fix to drop all biography_data indexes

2 months agoProperly clean when DROP_EXISTING is used
Karl O. Pinc [Sat, 4 Jan 2025 22:21:34 +0000 (16:21 -0600)]
Properly clean when DROP_EXISTING is used

2 months agoCorrect description
Karl O. Pinc [Sat, 4 Jan 2025 22:03:28 +0000 (16:03 -0600)]
Correct description

2 months agoFix cleanup of generated scripts
Karl O. Pinc [Sat, 4 Jan 2025 20:42:33 +0000 (14:42 -0600)]
Fix cleanup of generated scripts

4 months agoFOLLOW_ARRIVALS.Start and End can overlap under some conditions
Karl O. Pinc [Mon, 25 Nov 2024 18:22:16 +0000 (12:22 -0600)]
FOLLOW_ARRIVALS.Start and End can overlap under some conditions

4 months agoFix spelling
Karl O. Pinc [Mon, 25 Nov 2024 17:59:21 +0000 (11:59 -0600)]
Fix spelling

4 months agoFix diagram: FOLLOW_ARRIVALS.FID links to FOLLOWS.FID
Karl O. Pinc [Mon, 25 Nov 2024 17:35:48 +0000 (11:35 -0600)]
Fix diagram: FOLLOW_ARRIVALS.FID links to FOLLOWS.FID

4 months agoChange name of code table, ESTROUS_STATES to CODE_STATES
Karl O. Pinc [Wed, 6 Nov 2024 19:10:50 +0000 (13:10 -0600)]
Change name of code table, ESTROUS_STATES to CODE_STATES

4 months agoNiether mothers nor fathers are required
Karl O. Pinc [Wed, 6 Nov 2024 19:01:19 +0000 (13:01 -0600)]
Niether mothers nor fathers are required

5 months agoSeparate metric and unit constants for adolescent age
Karl O. Pinc [Wed, 30 Oct 2024 22:43:48 +0000 (17:43 -0500)]
Separate metric and unit constants for adolescent age

5 months agoMove demography related constants into limits.m4 file
Karl O. Pinc [Wed, 30 Oct 2024 22:34:19 +0000 (17:34 -0500)]
Move demography related constants into limits.m4 file

5 months agoAdd textual documentation of follows related tables
Karl O. Pinc [Wed, 30 Oct 2024 22:21:24 +0000 (17:21 -0500)]
Add textual documentation of follows related tables

5 months agoFix lables for hyperlinks; normalize the line breaks
Karl O. Pinc [Wed, 30 Oct 2024 21:38:59 +0000 (16:38 -0500)]
Fix lables for hyperlinks; normalize the line breaks

5 months agoFOLLOWS must have a related FOLLOW_OBSERVERS row
Karl O. Pinc [Wed, 30 Oct 2024 20:52:56 +0000 (15:52 -0500)]
FOLLOWS must have a related FOLLOW_OBSERVERS row

5 months agoAdd PEOPLE.Name and PEOPLE.Description RST substitutions
Karl O. Pinc [Wed, 30 Oct 2024 13:42:05 +0000 (08:42 -0500)]
Add PEOPLE.Name and PEOPLE.Description RST substitutions

5 months agoAdd follows ER diagram
Karl O. Pinc [Wed, 30 Oct 2024 13:33:32 +0000 (08:33 -0500)]
Add follows ER diagram

5 months agoUse substitution instead of :ref:
Karl O. Pinc [Mon, 28 Oct 2024 23:00:25 +0000 (18:00 -0500)]
Use substitution instead of :ref:

5 months agoStart sentences on a new line for diff readability
Karl O. Pinc [Mon, 28 Oct 2024 22:50:18 +0000 (17:50 -0500)]
Start sentences on a new line for diff readability

5 months agoNote that diagrams use inkscape as their source file format
Karl O. Pinc [Mon, 28 Oct 2024 16:36:00 +0000 (11:36 -0500)]
Note that diagrams use inkscape as their source file format

13 months agofix biography.animidnum description
Stevan [Fri, 1 Mar 2024 16:13:20 +0000 (16:13 +0000)]
fix biography.animidnum description

13 months agoMark the UNK, unknown person, inactive to prevent future use
Karl O. Pinc kop@karlpinc.com [Thu, 15 Feb 2024 20:54:59 +0000 (20:54 +0000)]
Mark the UNK, unknown person, inactive to prevent future use

13 months agoAdd KL and KL_KK codes to COMM_IDS
Karl O. Pinc kop@karlpinc.com [Thu, 15 Feb 2024 20:52:57 +0000 (20:52 +0000)]
Add KL and KL_KK codes to COMM_IDS

Fixes problem #12.

13 months agoUse "UNK" unknown person when person is null
Karl O. Pinc kop@karlpinc.com [Thu, 15 Feb 2024 20:37:47 +0000 (20:37 +0000)]
Use "UNK" unknown person when person is null

Fixes problems #16 and #18 for COMM_MEMB_LOG.

14 months agoAdjust conversion for new COMM_MEMBS_SOURCES table
Karl O. Pinc kop@karlpinc.com [Fri, 2 Feb 2024 18:01:10 +0000 (18:01 +0000)]
Adjust conversion for new COMM_MEMBS_SOURCES table

14 months agoAdd COMM_MEMBS_SOURCES table
Karl O. Pinc [Fri, 2 Feb 2024 17:41:25 +0000 (11:41 -0600)]
Add COMM_MEMBS_SOURCES table

Validates the StartSource and EndSource columns of COMM_MEMBS.

14 months agoCache db content install per database
Karl O. Pinc [Wed, 31 Jan 2024 04:49:05 +0000 (22:49 -0600)]
Cache db content install per database

14 months agoAdjust conversion to load BIOGRAPHY_DATA instead of BIOGRAPHY
Karl O. Pinc kop@karlpinc.com [Wed, 31 Jan 2024 00:46:03 +0000 (00:46 +0000)]
Adjust conversion to load BIOGRAPHY_DATA instead of BIOGRAPHY

14 months agoCreate BIOGRAPHY view
Karl O. Pinc [Wed, 31 Jan 2024 00:06:41 +0000 (18:06 -0600)]
Create BIOGRAPHY view

14 months agoAdd _error_immutable_view function to support un-updateable views
Karl O. Pinc [Wed, 31 Jan 2024 00:05:36 +0000 (18:05 -0600)]
Add _error_immutable_view function to support un-updateable views

14 months agoNote how the table listing a view's columns should be constructed
Karl O. Pinc [Wed, 31 Jan 2024 00:02:24 +0000 (18:02 -0600)]
Note how the table listing a view's columns should be constructed

14 months agoAdd DROP_EXISTING variable to for when there's no 'drop' file
Karl O. Pinc [Wed, 31 Jan 2024 00:01:22 +0000 (18:01 -0600)]
Add DROP_EXISTING variable to for when there's no 'drop' file

14 months agoFix so "make check" works after recreate-db target
Karl O. Pinc [Tue, 30 Jan 2024 23:59:38 +0000 (17:59 -0600)]
Fix so "make check" works after recreate-db target

14 months agoAdd caution that remaking triggers or views drop triggers
Karl O. Pinc [Tue, 30 Jan 2024 23:13:38 +0000 (17:13 -0600)]
Add caution that remaking triggers or views drop triggers

14 months agoChange name of view dir to avoid name conflict with rst source dirs
Karl O. Pinc [Tue, 30 Jan 2024 17:25:36 +0000 (11:25 -0600)]
Change name of view dir to avoid name conflict with rst source dirs

14 months agoUse consistent variable naming conventions
Karl O. Pinc [Tue, 30 Jan 2024 17:22:32 +0000 (11:22 -0600)]
Use consistent variable naming conventions

14 months agoRaise an exception if we don't find the view code
Karl O. Pinc [Tue, 30 Jan 2024 17:19:49 +0000 (11:19 -0600)]
Raise an exception if we don't find the view code

14 months agoAutomatically generate statements to drop views
Karl O. Pinc [Tue, 30 Jan 2024 15:44:12 +0000 (09:44 -0600)]
Automatically generate statements to drop views

14 months agoRequire that the CREATE VIEW explicitly list column names
Karl O. Pinc [Tue, 30 Jan 2024 17:18:20 +0000 (11:18 -0600)]
Require that the CREATE VIEW explicitly list column names

14 months agoAutomatically generate statements to drop views
Karl O. Pinc [Tue, 30 Jan 2024 15:44:12 +0000 (09:44 -0600)]
Automatically generate statements to drop views

14 months agoFix (typos in) review target
Karl O. Pinc [Tue, 30 Jan 2024 15:38:52 +0000 (09:38 -0600)]
Fix (typos in) review target

14 months agoChange BIOGRAPHY table name to BIOGRAPHY_DATA
Karl O. Pinc [Mon, 29 Jan 2024 22:27:53 +0000 (16:27 -0600)]
Change BIOGRAPHY table name to BIOGRAPHY_DATA

14 months agoReflect change of lookup schema to "codes" in conversion code
Karl O. Pinc [Mon, 29 Jan 2024 19:52:08 +0000 (13:52 -0600)]
Reflect change of lookup schema to "codes" in conversion code

14 months agoChange the name of the lookup schema to "codes"
Karl O. Pinc [Mon, 29 Jan 2024 19:12:14 +0000 (13:12 -0600)]
Change the name of the lookup schema to "codes"

14 months agoImprove code formatting
Karl O. Pinc [Mon, 29 Jan 2024 19:10:47 +0000 (13:10 -0600)]
Improve code formatting

14 months agoCleanup after moving triggers into db/schemas/lib/
Karl O. Pinc [Mon, 29 Jan 2024 19:09:18 +0000 (13:09 -0600)]
Cleanup after moving triggers into db/schemas/lib/

14 months agoFix and imprprove error message
Karl O. Pinc [Mon, 29 Jan 2024 19:04:27 +0000 (13:04 -0600)]
Fix and imprprove error message

14 months agoImprove docs on clean targets
Karl O. Pinc [Mon, 29 Jan 2024 18:46:29 +0000 (12:46 -0600)]
Improve docs on clean targets

14 months agoAdd clean-commands target for scripts
Karl O. Pinc [Mon, 29 Jan 2024 18:45:47 +0000 (12:45 -0600)]
Add clean-commands target for scripts

14 months agodefault_transaction_deferrable=on, backslash_quote=off
Karl O. Pinc kop@karlpinc.com [Wed, 24 Jan 2024 22:50:33 +0000 (22:50 +0000)]
default_transaction_deferrable=on, backslash_quote=off

14 months agoThe php-fpm interpreter is not deprecated
Karl O. Pinc kop@karlpinc.com [Mon, 22 Jan 2024 21:18:07 +0000 (21:18 +0000)]
The php-fpm interpreter is not deprecated

14 months agoConvert BIOGRAPHY_LOG
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 21:04:35 +0000 (21:04 +0000)]
Convert BIOGRAPHY_LOG

14 months agoClean up "biography_update_log.made by" column to remove space
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 20:56:51 +0000 (20:56 +0000)]
Clean up "biography_update_log.made by" column to remove space

14 months agoMake a PEOPLE table in the "clean" schema to support bad data queries
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 20:56:03 +0000 (20:56 +0000)]
Make a PEOPLE table in the "clean" schema to support bad data queries

14 months agoIndex biography_log and comm_memb_log
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 19:29:00 +0000 (19:29 +0000)]
Index biography_log and comm_memb_log

14 months agoAdd LIMIT to SELECT INTO, and ORDER BY for consistant errors results
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 19:19:30 +0000 (19:19 +0000)]
Add LIMIT to SELECT INTO, and ORDER BY for consistant errors results

14 months agoFix AnimID column docs, must not be null, plus other columns
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 18:12:00 +0000 (18:12 +0000)]
Fix AnimID column docs, must not be null, plus other columns

14 months agoCreate BIOGRAPHY_LOG and update docs with actual constraints
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 17:58:52 +0000 (17:58 +0000)]
Create BIOGRAPHY_LOG and update docs with actual constraints

14 months agoDocument BIOGRAPHY_LOG
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 17:40:49 +0000 (17:40 +0000)]
Document BIOGRAPHY_LOG

14 months agoRemove empty trailing line
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 17:38:14 +0000 (17:38 +0000)]
Remove empty trailing line

14 months agoMove DadID, DadIDPub, and DadPrelim relationships into the overview
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 16:38:03 +0000 (16:38 +0000)]
Move DadID, DadIDPub, and DadPrelim relationships into the overview

14 months agoMention both column names in the iff NULL docs
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 16:37:59 +0000 (16:37 +0000)]
Mention both column names in the iff NULL docs

14 months agoNote what the special quotes are
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 16:35:32 +0000 (16:35 +0000)]
Note what the special quotes are

14 months agoAdd BIOGRAPHY.DadPrelim substitution refrence
Karl O. Pinc kop@karlpinc.com [Sat, 20 Jan 2024 16:28:20 +0000 (16:28 +0000)]
Add BIOGRAPHY.DadPrelim substitution refrence

14 months agoIn diagram, change name BIOGRAPHY->BIOGRAPHY_DATA and add DadIDPrelim column
Karl O. Pinc [Fri, 19 Jan 2024 23:02:42 +0000 (17:02 -0600)]
In diagram, change name BIOGRAPHY->BIOGRAPHY_DATA and add DadIDPrelim column

14 months agoReduce the HTML sidebar table of contents level to 2
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 22:48:54 +0000 (22:48 +0000)]
Reduce the HTML sidebar table of contents level to 2

14 months agoBetter docs for DATA_FILE conversion variable
Karl O. Pinc [Tue, 12 Dec 2023 00:10:01 +0000 (18:10 -0600)]
Better docs for DATA_FILE conversion variable

14 months agoRemove more code which worked around invalid primary key data in dump
Karl O. Pinc [Tue, 12 Dec 2023 00:07:59 +0000 (18:07 -0600)]
Remove more code which worked around invalid primary key data in dump

This goes with commit: ea49f4a06a

14 months agoNew limits ("final" for the ones that exist now) based on group meeting
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 19:53:52 +0000 (19:53 +0000)]
New limits ("final" for the ones that exist now) based on group meeting

14 months agoUpdate based on initial data conversion
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 16:47:44 +0000 (16:47 +0000)]
Update based on initial data conversion

14 months agoEnforce rule that EntryDate <= DepartDate
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:39:02 +0000 (14:39 +0000)]
Enforce rule that EntryDate <= DepartDate

14 months agoAlign community code max length with that of the code table
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:25:01 +0000 (14:25 +0000)]
Align community code max length with that of the code table

14 months agoTesting for contiguous membership requires membership in one community
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:23:35 +0000 (14:23 +0000)]
Testing for contiguous membership requires membership in one community

14 months agoFix syntax error
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:22:13 +0000 (14:22 +0000)]
Fix syntax error

14 months agoLoad DadIDPrelim; adjust DadID and DadIDPub accordingly
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:21:14 +0000 (14:21 +0000)]
Load DadIDPrelim; adjust DadID and DadIDPub accordingly

14 months agoRemove trailing newlines from file
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:19:18 +0000 (14:19 +0000)]
Remove trailing newlines from file

14 months agoDo not limit AnimID length, to match BIOGRAPHY
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:15:47 +0000 (14:15 +0000)]
Do not limit AnimID length, to match BIOGRAPHY

14 months agoAdd missing FROM clauses
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 14:14:36 +0000 (14:14 +0000)]
Add missing FROM clauses

14 months agoFix minimum age of parent at time of birth calculation
Karl O. Pinc kop@karlpinc.com [Fri, 19 Jan 2024 01:45:09 +0000 (01:45 +0000)]
Fix minimum age of parent at time of birth calculation

14 months agoCleanup data required to tidy data types, fixes problem #10
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 22:56:20 +0000 (22:56 +0000)]
Cleanup data required to tidy data types, fixes problem #10

14 months agoImprove description of file
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:47:06 +0000 (21:47 +0000)]
Improve description of file

14 months agoThese cleanups were done in the upstream data
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:45:12 +0000 (21:45 +0000)]
These cleanups were done in the upstream data

14 months agoExplain why permissions are set only on raw
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:42:38 +0000 (21:42 +0000)]
Explain why permissions are set only on raw

14 months agoHave BIOGRAPHY.DadIDPub follow the same NULL rules as DadPrelim
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:38:01 +0000 (21:38 +0000)]
Have BIOGRAPHY.DadIDPub follow the same NULL rules as DadPrelim

This change is questionable, since querying on DadIDPub would be
slightly wonky.  But we don't really anticipate queries.

14 months agoAdd BIOGRAPHY.DadID_Prelim column
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:37:06 +0000 (21:37 +0000)]
Add BIOGRAPHY.DadID_Prelim column

14 months agoNew macro for if and only if NULL values
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:10:08 +0000 (21:10 +0000)]
New macro for if and only if NULL values

14 months agoBetter BIOGRAPHY.DadID description
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:08:36 +0000 (21:08 +0000)]
Better BIOGRAPHY.DadID description

14 months agoNote where BIOGRAPHY.AnimIDs come from
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 21:06:29 +0000 (21:06 +0000)]
Note where BIOGRAPHY.AnimIDs come from

14 months agoReword the standard "empty text" phrasings
Karl O. Pinc kop@karlpinc.com [Thu, 18 Jan 2024 20:44:13 +0000 (20:44 +0000)]
Reword the standard "empty text" phrasings

14 months agoRevert all code that changes the FOLLOW_MAP_TIME DDL statement on db load
Karl O. Pinc kop@karlpinc.com [Wed, 17 Jan 2024 09:16:25 +0000 (09:16 +0000)]
Revert all code that changes the FOLLOW_MAP_TIME DDL statement on db load

The data still contains duplicate keys.

This reverts commit ea49f4a06ac3ef8c2aec1e8fbc0c08703bca36d7.
This reverts commit 3e206bacf3a14ed9a242e766c1b1e590104890dc.

14 months agoDo not change the FOLLOW_MAP_TIME DDL statement at all
Karl O. Pinc kop@karlpinc.com [Wed, 17 Jan 2024 09:08:55 +0000 (09:08 +0000)]
Do not change the FOLLOW_MAP_TIME DDL statement at all

Finishes the fix made in ea49f4a06ac.

14 months agoProperly pick up variables from the environment
Karl O. Pinc kop@karlpinc.com [Wed, 17 Jan 2024 02:45:18 +0000 (02:45 +0000)]
Properly pick up variables from the environment