kop_sokwedb
7 weeks agoUse a connection string with PSQL master
Karl O. Pinc kop@karlpinc.com [Sat, 12 Apr 2025 19:02:02 +0000 (19:02 +0000)]
Use a connection string with PSQL

7 weeks agoFully qualify table name
Karl O. Pinc kop@karlpinc.com [Sat, 12 Apr 2025 18:56:58 +0000 (18:56 +0000)]
Fully qualify table name

7 weeks agoCOMM_MEMB_LOG.AnimID does not have to reference BIOGRAPHY_DATA
Karl O. Pinc kop@karlpinc.com [Sat, 12 Apr 2025 18:52:11 +0000 (18:52 +0000)]
COMM_MEMB_LOG.AnimID does not have to reference BIOGRAPHY_DATA

Fixes problem #17.

7 weeks agoBIOGRAPHY_LOG.AnimID does not have to reference BIOGRAPHY_DATA
Karl O. Pinc kop@karlpinc.com [Sat, 12 Apr 2025 18:34:02 +0000 (18:34 +0000)]
BIOGRAPHY_LOG.AnimID does not have to reference BIOGRAPHY_DATA

Fixes problem #22.

7 weeks agoNew macro for columns named AnimID but are not required to be foreign keys
Karl O. Pinc kop@karlpinc.com [Sat, 12 Apr 2025 18:32:29 +0000 (18:32 +0000)]
New macro for columns named AnimID but are not required to be foreign keys

7 weeks agoAdjust conversion for tables dropped in the upstream MS Access db
Karl O. Pinc kop@karlpinc.com [Fri, 11 Apr 2025 22:45:39 +0000 (22:45 +0000)]
Adjust conversion for tables dropped in the upstream MS Access db

7 weeks agoAdd after_* targets for completing the conversion after a given step
Karl O. Pinc kop@karlpinc.com [Fri, 11 Apr 2025 22:43:14 +0000 (22:43 +0000)]
Add after_* targets for completing the conversion after a given step

8 weeks agoMake clear that tables are not entities
Karl O. Pinc [Thu, 10 Apr 2025 14:23:24 +0000 (09:23 -0500)]
Make clear that tables are not entities

2 months agoGROOMINGS.Certainty -> GROOMINGS.TimeCertainty
Karl O. Pinc [Tue, 1 Apr 2025 22:52:51 +0000 (17:52 -0500)]
GROOMINGS.Certainty -> GROOMINGS.TimeCertainty

2 months agoAdd event ER diagram to docs
Karl O. Pinc [Tue, 1 Apr 2025 22:43:42 +0000 (17:43 -0500)]
Add event ER diagram to docs

2 months agoAdd many event related tables to the events ER diagram
Karl O. Pinc [Tue, 1 Apr 2025 22:28:34 +0000 (17:28 -0500)]
Add many event related tables to the events ER diagram

2 months agoChange PARTS table name to ROLES
Karl O. Pinc [Tue, 1 Apr 2025 18:30:23 +0000 (13:30 -0500)]
Change PARTS table name to ROLES

2 months agoExplain why ER diagrams are useful
Karl O. Pinc [Fri, 7 Mar 2025 16:49:04 +0000 (10:49 -0600)]
Explain why ER diagrams are useful

3 months agoAdd diagram for EVENTS with arrivals, food, other species, and humans
Karl O. Pinc [Tue, 4 Mar 2025 00:38:13 +0000 (18:38 -0600)]
Add diagram for EVENTS with arrivals, food, other species, and humans

3 months agoAdd EVENTS and PARTS tables, remove event related tables
Karl O. Pinc [Tue, 4 Mar 2025 00:37:21 +0000 (18:37 -0600)]
Add EVENTS and PARTS tables, remove event related tables

3 months agoDocument what breaks the system
Karl O. Pinc kop@karlpinc.com [Mon, 3 Mar 2025 22:21:46 +0000 (22:21 +0000)]
Document what breaks the system

3 months agoAdd lower limit for FOLLOWS.Date
Karl O. Pinc kop@karlpinc.com [Sat, 1 Mar 2025 00:05:27 +0000 (00:05 +0000)]
Add lower limit for FOLLOWS.Date

3 months agoInitial definition of the FOLLOWS table
Karl O. Pinc kop@karlpinc.com [Fri, 28 Feb 2025 23:52:47 +0000 (23:52 +0000)]
Initial definition of the FOLLOWS table

3 months agoSwap FOLLOWS.Notes and Date columns so Notes comes last
Karl O. Pinc kop@karlpinc.com [Fri, 28 Feb 2025 23:46:47 +0000 (23:46 +0000)]
Swap FOLLOWS.Notes and Date columns so Notes comes last

3 months agoSwap FOLLOWS.Date and Notes columns so Notes is the last column
Karl O. Pinc [Fri, 28 Feb 2025 23:44:47 +0000 (17:44 -0600)]
Swap FOLLOWS.Date and Notes columns so Notes is the last column

3 months agoUse macro for key column generation
Karl O. Pinc kop@karlpinc.com [Fri, 28 Feb 2025 23:26:54 +0000 (23:26 +0000)]
Use macro for key column generation

3 months agoPort macros and Sphinx substitutions
Karl O. Pinc [Wed, 26 Feb 2025 23:25:29 +0000 (17:25 -0600)]
Port macros and Sphinx substitutions

3 months agoYou cannot have COMMENTs for functions which share a name with other objects
Karl O. Pinc [Wed, 26 Feb 2025 18:31:15 +0000 (12:31 -0600)]
You cannot have COMMENTs for functions which share a name with other objects

The solution is to have a separate syntax for function comments.
It is not worth the work at this time.

3 months agoImprove error message when a function cannot be commented
Karl O. Pinc [Tue, 25 Feb 2025 21:24:59 +0000 (15:24 -0600)]
Improve error message when a function cannot be commented

3 months agoMerge branch 'master' of /srv/repos/kop_sokwedb
Karl O. Pinc kop@karlpinc.com [Tue, 25 Feb 2025 21:20:25 +0000 (21:20 +0000)]
Merge branch 'master' of /srv/repos/kop_sokwedb

3 months agoMacro to prevent change of system maintained column
Karl O. Pinc [Tue, 25 Feb 2025 21:19:44 +0000 (15:19 -0600)]
Macro to prevent change of system maintained column

3 months agoRevert "Change FOLLOW_OBSERVERS.OBS_BRec to OBS_TRec"
Karl O. Pinc kop@karlpinc.com [Mon, 24 Feb 2025 23:01:36 +0000 (23:01 +0000)]
Revert "Change FOLLOW_OBSERVERS.OBS_BRec to OBS_TRec"

This reverts commit b902731a2460d6fa455ceac07c6b44e4bc92b800.

3 months agoFix error message on INSERT of automatically maintained columns
Karl O. Pinc kop@karlpinc.com [Sun, 23 Feb 2025 21:33:47 +0000 (21:33 +0000)]
Fix error message on INSERT of automatically maintained columns

3 months agoMacros and replacement text for automatically generated column content
Karl O. Pinc kop@karlpinc.com [Sat, 22 Feb 2025 23:04:46 +0000 (23:04 +0000)]
Macros and replacement text for automatically generated column content

3 months agoFix typo
Karl O. Pinc kop@karlpinc.com [Sat, 22 Feb 2025 20:02:45 +0000 (20:02 +0000)]
Fix typo

3 months agoUpdate codes schema docs to mention the functions it holds
Karl O. Pinc kop@karlpinc.com [Sat, 22 Feb 2025 19:46:40 +0000 (19:46 +0000)]
Update codes schema docs to mention the functions it holds

3 months agoAdd FOOD_BOUTS, OTHER_SPECIES, HUMANS to FOLLOWS ER diagram
Karl O. Pinc [Tue, 18 Feb 2025 23:36:23 +0000 (17:36 -0600)]
Add FOOD_BOUTS, OTHER_SPECIES, HUMANS to FOLLOWS ER diagram

3 months agoMerge branch 'master' of ssh://sokwe.janegoodall.org/srv/repos/kop_sokwedb
Karl O. Pinc [Tue, 18 Feb 2025 22:24:46 +0000 (16:24 -0600)]
Merge branch 'master' of ssh://sokwe.janegoodall.org/srv/repos/kop_sokwedb

3 months agoAdd crows feet, clean up preserve marker layer, remove solid ball endpoint
Karl O. Pinc [Tue, 18 Feb 2025 22:22:57 +0000 (16:22 -0600)]
Add crows feet, clean up preserve marker layer, remove solid ball endpoint

3 months agoAdd crows feet, clean up preserve marker layer, remove solid ball endpoint
Karl O. Pinc [Tue, 18 Feb 2025 22:04:40 +0000 (16:04 -0600)]
Add crows feet, clean up preserve marker layer, remove solid ball endpoint

3 months agoMake key visible, remove solid circle endpoints, add crows-feet markers
Karl O. Pinc [Tue, 18 Feb 2025 20:18:28 +0000 (14:18 -0600)]
Make key visible, remove solid circle endpoints, add crows-feet markers

3 months agoFix quoting in help output
Karl O. Pinc kop@karlpinc.com [Fri, 14 Feb 2025 18:43:42 +0000 (18:43 +0000)]
Fix quoting in help output

3 months agoDetail what roles to use to create various types of logins
Karl O. Pinc kop@karlpinc.com [Fri, 14 Feb 2025 18:30:44 +0000 (18:30 +0000)]
Detail what roles to use to create various types of logins

3 months agoWork around what looks like an m4 bug preventing macro expansion
Karl O. Pinc kop@karlpinc.com [Fri, 14 Feb 2025 18:16:26 +0000 (18:16 +0000)]
Work around what looks like an m4 bug preventing macro expansion

Seems like macros used on the first line of footnotes don't expand.

3 months agoChange URL of "Logins" page to use "logins" in URL
Karl O. Pinc kop@karlpinc.com [Fri, 14 Feb 2025 18:15:05 +0000 (18:15 +0000)]
Change URL of "Logins" page to use "logins" in URL

3 months agoChange FOLLOW_OBSERVERS.OBS_BRec to OBS_TRec
Karl O. Pinc [Fri, 14 Feb 2025 18:11:28 +0000 (12:11 -0600)]
Change FOLLOW_OBSERVERS.OBS_BRec to OBS_TRec

3 months agoCorrectly document how to bootstrap role installation on Azure
Karl O. Pinc kop@karlpinc.com [Thu, 13 Feb 2025 22:55:04 +0000 (22:55 +0000)]
Correctly document how to bootstrap role installation on Azure

Rather than mess around with the actual generated SQL and have
multiple new make targets, provide instructions on what to do to make
things work on Azure.  This is lame, but simple.  Even the actual
instructions are lame, since they assume prior knowledge and are
only templates.  They should be sufficient for someone who works
with Postgres, which is good enough for the moment.

3 months agoMerge branch 'master' of /srv/repos/sokwedb
Karl O. Pinc kop@karlpinc.com [Thu, 13 Feb 2025 22:17:43 +0000 (22:17 +0000)]
Merge branch 'master' of /srv/repos/sokwedb

3 months agoRemove trailing space
Karl O. Pinc kop@karlpinc.com [Thu, 13 Feb 2025 21:48:31 +0000 (21:48 +0000)]
Remove trailing space

3 months agoExplain the "adminuser" argument in the help text
Karl O. Pinc kop@karlpinc.com [Thu, 13 Feb 2025 20:59:32 +0000 (20:59 +0000)]
Explain the "adminuser" argument in the help text

3 months agoThe user's admin account must be used to mediate when becoming the user
Karl O. Pinc kop@karlpinc.com [Thu, 13 Feb 2025 20:51:18 +0000 (20:51 +0000)]
The user's admin account must be used to mediate when becoming the user

3 months agoChange pdb_ prefix to sdb_ for backported changes from primedb
Karl O. Pinc kop@karlpinc.com [Thu, 13 Feb 2025 20:50:09 +0000 (20:50 +0000)]
Change pdb_ prefix to sdb_ for backported changes from primedb

3 months agoHave sphinx fail on warnings
Karl O. Pinc kop@karlpinc.com [Thu, 13 Feb 2025 19:44:35 +0000 (19:44 +0000)]
Have sphinx fail on warnings

3 months agochange PRIMEDB to SokweDB
Stevan [Sat, 8 Feb 2025 22:37:36 +0000 (22:37 +0000)]
change PRIMEDB to SokweDB

3 months agocorrect macro suffix pdb_ -> sdb_
Stevan [Sat, 8 Feb 2025 22:06:20 +0000 (22:06 +0000)]
correct macro suffix pdb_ -> sdb_

3 months agoFix to require sslmode connections, by using a connection string
Karl O. Pinc kop@karlpinc.com [Sat, 8 Feb 2025 00:03:44 +0000 (00:03 +0000)]
Fix to require sslmode connections, by using a connection string

3 months agoOnly set user when we have the final user & clean up variable names
Karl O. Pinc kop@karlpinc.com [Sat, 8 Feb 2025 00:02:43 +0000 (00:02 +0000)]
Only set user when we have the final user & clean up variable names

3 months agoRevert "docs: adjust order of initialization"
Karl O. Pinc kop@karlpinc.com [Fri, 7 Feb 2025 23:51:49 +0000 (23:51 +0000)]
Revert "docs: adjust order of initialization"

This reverts commit 5f2d6648b2cb2e89dc86f7b84b852a03eec93d43.

3 months agodocs: update connection string to sslmode=require
Stevan [Fri, 7 Feb 2025 23:38:10 +0000 (23:38 +0000)]
docs: update connection string to sslmode=require

3 months agodocs: adjust order of initialization
Stevan [Fri, 7 Feb 2025 22:40:49 +0000 (22:40 +0000)]
docs: adjust order of initialization

3 months agoNew server info for new pg 17 cluster
Karl O. Pinc kop@karlpinc.com [Fri, 7 Feb 2025 22:12:46 +0000 (22:12 +0000)]
New server info for new pg 17 cluster

3 months agoNew default name "sokwe-dbs17" for server
Karl O. Pinc kop@karlpinc.com [Fri, 7 Feb 2025 22:05:58 +0000 (22:05 +0000)]
New default name "sokwe-dbs17" for server

3 months agoBump PG server version from 15 to 17
Karl O. Pinc kop@karlpinc.com [Fri, 7 Feb 2025 22:05:04 +0000 (22:05 +0000)]
Bump PG server version from 15 to 17

3 months agoChange default cluster name to sokwedb when not using Azure
Karl O. Pinc kop@karlpinc.com [Fri, 7 Feb 2025 21:51:17 +0000 (21:51 +0000)]
Change default cluster name to sokwedb when not using Azure

4 months agoFOLLOW_OBSERVERS stores who recorded the B Record, not the TRec
Karl O. Pinc kop@karlpinc.com [Fri, 24 Jan 2025 22:24:11 +0000 (22:24 +0000)]
FOLLOW_OBSERVERS stores who recorded the B Record, not the TRec

4 months agoData goes from clean into sokwedb
Karl O. Pinc kop@karlpinc.com [Thu, 23 Jan 2025 23:23:33 +0000 (23:23 +0000)]
Data goes from clean into sokwedb

4 months agoFix external hyperlinks
Karl O. Pinc kop@karlpinc.com [Tue, 21 Jan 2025 21:13:20 +0000 (21:13 +0000)]
Fix external hyperlinks

4 months agoFix macro prefix
Karl O. Pinc kop@karlpinc.com [Tue, 21 Jan 2025 21:12:44 +0000 (21:12 +0000)]
Fix macro prefix

4 months agoUse tabs in Makefile
Karl O. Pinc kop@karlpinc.com [Tue, 21 Jan 2025 20:36:30 +0000 (20:36 +0000)]
Use tabs in Makefile

4 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."

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

4 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.

4 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

4 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

4 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

4 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

4 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

5 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

5 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

5 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

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

5 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

6 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

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

6 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

6 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

6 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

7 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

7 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

7 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

7 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

7 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

7 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

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

7 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:

7 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

7 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

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

15 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

15 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.

15 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.

16 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

16 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.

16 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

16 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