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

2 days 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 days 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

3 days 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

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

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

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

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

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

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

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

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

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

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

5 weeks 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.

5 weeks 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

5 weeks 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

5 weeks 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

5 weeks 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.

5 weeks 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

5 weeks 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

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

5 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 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

2 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

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

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

2 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

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