sokwedb
2 days agoA ER diagram related to female sexual cycling
Karl O. Pinc [Mon, 25 May 2026 14:29:07 +0000 (09:29 -0500)]
A ER diagram related to female sexual cycling

We'll see if we want to keep this.  For the hot minute, the
estrus states are left on the demography ER diagram.

4 days agoDrop GROOMINGS.Other column
Karl O. Pinc [Sun, 24 May 2026 01:00:01 +0000 (20:00 -0500)]
Drop GROOMINGS.Other column

4 days agoCreate, document, index, and trigger GROOMINGS
Karl O. Pinc kop@karlpinc.com [Sat, 23 May 2026 23:36:03 +0000 (23:36 +0000)]
Create, document, index, and trigger GROOMINGS

4 days agoThe ROLES.Role of sdb_actor and sdb_actee must occur in pairs
Karl O. Pinc kop@karlpinc.com [Sat, 23 May 2026 21:04:40 +0000 (21:04 +0000)]
The ROLES.Role of sdb_actor and sdb_actee must occur in pairs

6 days agoRemove hardcoding of aggression event
Karl O. Pinc kop@karlpinc.com [Thu, 21 May 2026 23:26:38 +0000 (23:26 +0000)]
Remove hardcoding of aggression event

We will need to execute this code to support grooming events.

6 days agoPrevent updates to ROLES.Role
Karl O. Pinc kop@karlpinc.com [Thu, 21 May 2026 23:25:39 +0000 (23:25 +0000)]
Prevent updates to ROLES.Role

6 days agoThere can only be one individual related to a food event
Karl O. Pinc kop@karlpinc.com [Thu, 21 May 2026 23:08:30 +0000 (23:08 +0000)]
There can only be one individual related to a food event

7 days agoThe individual consuming the food must be the focal
Karl O. Pinc kop@karlpinc.com [Wed, 20 May 2026 15:12:04 +0000 (15:12 +0000)]
The individual consuming the food must be the focal

7 days agoDeclare variables needed to to check focal participantion as globals
Karl O. Pinc kop@karlpinc.com [Wed, 20 May 2026 14:40:49 +0000 (14:40 +0000)]
Declare variables needed to to check focal participantion as globals

7 days agoPlace an upper limit (2) on the foods consumed per food event
Karl O. Pinc kop@karlpinc.com [Wed, 20 May 2026 14:25:28 +0000 (14:25 +0000)]
Place an upper limit (2) on the foods consumed per food event

9 days agoFix markup
Karl O. Pinc kop@karlpinc.com [Mon, 18 May 2026 16:16:30 +0000 (16:16 +0000)]
Fix markup

9 days agoGive unique indexes descriptive names
Karl O. Pinc kop@karlpinc.com [Mon, 18 May 2026 15:53:44 +0000 (15:53 +0000)]
Give unique indexes descriptive names

The user can see these names on index violations, which are db rule
integrity violations.  Give them a clue as to what the probem is.

9 days agoAn individual can only appear in an event once
Karl O. Pinc kop@karlpinc.com [Mon, 18 May 2026 15:27:52 +0000 (15:27 +0000)]
An individual can only appear in an event once

9 days agoCorrect markup, improve text of "participant must be studyed" paragraph
Karl O. Pinc kop@karlpinc.com [Mon, 18 May 2026 15:02:51 +0000 (15:02 +0000)]
Correct markup, improve text of "participant must be studyed" paragraph

11 days agoMove the "not there" warning from AGGRESSIONS to ROLES
Karl O. Pinc kop@karlpinc.com [Sun, 17 May 2026 00:48:25 +0000 (00:48 +0000)]
Move the "not there" warning from AGGRESSIONS to ROLES

11 days agoChange GROOMINS.Others -> Other in ER diagram
Karl O. Pinc kop@karlpinc.com [Sun, 17 May 2026 00:38:43 +0000 (00:38 +0000)]
Change GROOMINS.Others -> Other in ER diagram

11 days agoRemove extra words
Karl O. Pinc kop@karlpinc.com [Sat, 16 May 2026 17:12:53 +0000 (17:12 +0000)]
Remove extra words

11 days agoImprove AGGRESSIONS docs
Karl O. Pinc kop@karlpinc.com [Sat, 16 May 2026 12:10:40 +0000 (12:10 +0000)]
Improve AGGRESSIONS docs

Based on Ian's review of 2026-05-15

11 days agoAllow aggression event logs back to 1960
Karl O. Pinc kop@karlpinc.com [Sat, 16 May 2026 11:58:28 +0000 (11:58 +0000)]
Allow aggression event logs back to 1960

Per Ian's review of 2026-05-15

12 days agoRemove GROOMINGS.TimeCertainty and Duplicate columns, add Problems
Karl O. Pinc [Fri, 15 May 2026 01:30:20 +0000 (20:30 -0500)]
Remove GROOMINGS.TimeCertainty and Duplicate columns, add Problems

13 days agoAdd new columns to AGGRESSIONS ER diagram
Karl O. Pinc [Thu, 14 May 2026 20:43:53 +0000 (15:43 -0500)]
Add new columns to AGGRESSIONS ER diagram

13 days agoCreate, document, index, and trigger FOOD_EVENTS
Karl O. Pinc kop@karlpinc.com [Thu, 14 May 2026 20:04:00 +0000 (20:04 +0000)]
Create, document, index, and trigger FOOD_EVENTS

13 days agoFix "must" v.s. "should" wording
Karl O. Pinc kop@karlpinc.com [Thu, 14 May 2026 19:25:42 +0000 (19:25 +0000)]
Fix "must" v.s. "should" wording

13 days agoDocument the transaction concept
Karl O. Pinc kop@karlpinc.com [Thu, 14 May 2026 17:27:11 +0000 (17:27 +0000)]
Document the transaction concept

13 days agoBetter handle :ref:s that show up in sentences
Karl O. Pinc kop@karlpinc.com [Thu, 14 May 2026 19:16:07 +0000 (19:16 +0000)]
Better handle :ref:s that show up in sentences

13 days agoFix hyperlink
Karl O. Pinc kop@karlpinc.com [Thu, 14 May 2026 16:16:44 +0000 (16:16 +0000)]
Fix hyperlink

13 days agoCreate, document, and index FOOD_NAMES table
Karl O. Pinc kop@karlpinc.com [Thu, 14 May 2026 00:00:07 +0000 (00:00 +0000)]
Create, document, and index FOOD_NAMES table

13 days agoCreate, document, and index FOOD_PARTS table
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 23:58:49 +0000 (23:58 +0000)]
Create, document, and index FOOD_PARTS table

13 days agoNew macro: positive_check() Checks a column is a positive number
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 23:53:14 +0000 (23:53 +0000)]
New macro: positive_check()  Checks a column is a positive number

13 days agoGet rid of trailing spaces
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 23:51:44 +0000 (23:51 +0000)]
Get rid of trailing spaces

13 days agoAlphabetize by code table name
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 23:49:54 +0000 (23:49 +0000)]
Alphabetize by code table name

13 days agoRe-arrange the overview paragraphs
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 23:03:47 +0000 (23:03 +0000)]
Re-arrange the overview paragraphs

13 days agoBetter docs regards EVENTS.Behavior codes and the event detail tables
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 23:01:24 +0000 (23:01 +0000)]
Better docs regards EVENTS.Behavior codes and the event detail tables

13 days agoIndex AGGRESSIONS
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 22:33:34 +0000 (22:33 +0000)]
Index AGGRESSIONS

13 days agoChange note regarding extracted text into a sidebar
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 22:29:04 +0000 (22:29 +0000)]
Change note regarding extracted text into a sidebar

13 days agoIndex SIGHTINGS
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 22:12:46 +0000 (22:12 +0000)]
Index SIGHTINGS

13 days agoExplicitly document that SIGHTINGS.AnimID and Date pair must be unique
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 22:07:03 +0000 (22:07 +0000)]
Explicitly document that SIGHTINGS.AnimID and Date pair must be unique

13 days agoFix SIGHTINGS.Date link text in RST references
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 22:05:28 +0000 (22:05 +0000)]
Fix SIGHTINGS.Date link text in RST references

13 days agoCreate SIGHTINGS trigger
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 20:19:32 +0000 (20:19 +0000)]
Create SIGHTINGS trigger

2 weeks agoPut lower bound on SIGHTINGS.Date
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 20:15:44 +0000 (20:15 +0000)]
Put lower bound on SIGHTINGS.Date

2 weeks agoAdd note documenting relations between extracted AGGRESSIONS columns
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 19:40:22 +0000 (19:40 +0000)]
Add note documenting relations between extracted AGGRESSIONS columns

Document that AGGRESSIONS FullAccount, AggressorBehavior, and
RecipientBehavior can all be duplicate information.

2 weeks agoAdd the AGGRESSIONS.RecipientBehavior column
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 19:39:16 +0000 (19:39 +0000)]
Add the AGGRESSIONS.RecipientBehavior column

2 weeks agoAdd the AGGRESSIONS.AggressorBehavior column
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 19:38:53 +0000 (19:38 +0000)]
Add the AGGRESSIONS.AggressorBehavior column

2 weeks agoAdd the AGGRESSIONS.FullAccount column
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 19:37:45 +0000 (19:37 +0000)]
Add the AGGRESSIONS.FullAccount column

2 weeks agoFix AGGRESSIONS substituition references' anchors
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 18:30:15 +0000 (18:30 +0000)]
Fix AGGRESSIONS substituition references' anchors

2 weeks agoFix RST syntax
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 18:27:07 +0000 (18:27 +0000)]
Fix RST syntax

2 weeks agoHave AGGRESSIONS.Severity validate off the AGG_SEVERITIES table
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 17:58:37 +0000 (17:58 +0000)]
Have AGGRESSIONS.Severity validate off the AGG_SEVERITIES table

The clean.ae_fight_category column needs to have a single space
normalized to NULL.

2 weeks agoCreate and document the AGG_SEVERITIES table
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 17:52:36 +0000 (17:52 +0000)]
Create and document the AGG_SEVERITIES table

2 weeks agoFor aggressions, EVENTS.Certainty is the certainty of the recipient
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 17:16:24 +0000 (17:16 +0000)]
For aggressions, EVENTS.Certainty is the certainty of the recipient

After phone discussion with Ian, 2026-05-13.

The MS Access aggression_event.ae_recipient_certainty_flag column
will need to be normalized to 'Y' and 'N' in the "clean" schema.
NULL and N means false, Y and X means true.  And some other
illegitimate values exist.

2 weeks agoUse better SQL literal syntax
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 17:14:13 +0000 (17:14 +0000)]
Use better SQL literal syntax

2 weeks agoSpelling
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 17:00:04 +0000 (17:00 +0000)]
Spelling

2 weeks agoProduce warning when AGGRESSIONS.Community <> FOLLOWS.Community
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 16:59:57 +0000 (16:59 +0000)]
Produce warning when AGGRESSIONS.Community <> FOLLOWS.Community

2 weeks agoCreate SIGHTINGS table
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 16:50:21 +0000 (16:50 +0000)]
Create SIGHTINGS table

Somehow, the file that defines the table was empty.

This fixes the error that prevents comments from loading into the db
when the db is (re)created.

2 weeks agoCreate the NON_BREC_SIGHTING_SOURCES table
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 15:57:57 +0000 (15:57 +0000)]
Create the NON_BREC_SIGHTING_SOURCES table

This fixes errors reported by gen_comments.py when creating the database.

2 weeks agoLoad aggression comments into EVENTS.notes
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 15:44:10 +0000 (15:44 +0000)]
Load aggression comments into EVENTS.notes

2 weeks agoFix permissions on AGGRESSIONS table
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 15:28:31 +0000 (15:28 +0000)]
Fix permissions on AGGRESSIONS table

2 weeks agoFix for problem #68
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:38:29 +0000 (03:38 +0000)]
Fix for problem #68

2 weeks agoFix for problem #67
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:38:22 +0000 (03:38 +0000)]
Fix for problem #67

2 weeks agoFix for problem #66
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:38:06 +0000 (03:38 +0000)]
Fix for problem #66

2 weeks agoFix for problem #65
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:37:49 +0000 (03:37 +0000)]
Fix for problem #65

2 weeks agoConvert AGGRESSION_EVENT -> AGGRESSIONS
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:35:58 +0000 (03:35 +0000)]
Convert AGGRESSION_EVENT -> AGGRESSIONS

2 weeks agoCreate table, document table, and implement rules for AGGRESSIONS table
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:34:39 +0000 (03:34 +0000)]
Create table, document table, and implement rules for AGGRESSIONS table

2 weeks agoFix character case of MS Access column name
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:31:16 +0000 (03:31 +0000)]
Fix character case of MS Access column name

2 weeks agoMake "Actor" and "Actee" roles into special values
Karl O. Pinc kop@karlpinc.com [Wed, 13 May 2026 03:28:23 +0000 (03:28 +0000)]
Make "Actor" and "Actee" roles into special values

2 weeks agoConvert AGGRESSION_EVENT_LOG table
Karl O. Pinc kop@karlpinc.com [Tue, 12 May 2026 15:57:24 +0000 (15:57 +0000)]
Convert AGGRESSION_EVENT_LOG table

2 weeks agoSimplify code by selecting EVENTS only once
Karl O. Pinc kop@karlpinc.com [Mon, 11 May 2026 22:07:16 +0000 (22:07 +0000)]
Simplify code by selecting EVENTS only once

2 weeks agoCreate AGGRESSION_EVENT_LOG table
Karl O. Pinc kop@karlpinc.com [Mon, 11 May 2026 14:16:20 +0000 (14:16 +0000)]
Create AGGRESSION_EVENT_LOG table

2 weeks agoDocument when tables are not in an ER diagram
Karl O. Pinc kop@karlpinc.com [Mon, 11 May 2026 14:14:17 +0000 (14:14 +0000)]
Document when tables are not in an ER diagram

2 weeks agoSpelling
Karl O. Pinc kop@karlpinc.com [Mon, 11 May 2026 12:44:23 +0000 (12:44 +0000)]
Spelling

2 weeks agoResolve problem #63
Stevan Earl [Mon, 11 May 2026 18:35:25 +0000 (18:35 +0000)]
Resolve problem #63

(cherry picked from commit d1211f4e90ee47da5bdf606656387790b358d391)

2 weeks agoResolve problem #62
Stevan Earl [Mon, 11 May 2026 18:33:18 +0000 (18:33 +0000)]
Resolve problem #62

(cherry picked from commit 9f55a8f0fbcb76b16033c1791256b74c3ffd1dd4)

3 weeks agoSet permissions properly for problem 25
Stevan Earl [Tue, 5 May 2026 17:58:51 +0000 (17:58 +0000)]
Set permissions properly for problem 25

3 weeks agofix compare state missing semicolon
Stevan Earl [Tue, 5 May 2026 17:58:25 +0000 (17:58 +0000)]
fix compare state missing semicolon

3 weeks agoReverse direction of conversion state comparison
Stevan Earl [Tue, 5 May 2026 17:38:32 +0000 (17:38 +0000)]
Reverse direction of conversion state comparison

3 weeks agoResolve problem #25
Karl O. Pinc kop@karlpinc.com [Tue, 5 May 2026 16:41:30 +0000 (16:41 +0000)]
Resolve problem #25

3 weeks agoResolve problem #24, and introduce framework conversion data changes
Karl O. Pinc kop@karlpinc.com [Tue, 5 May 2026 16:06:38 +0000 (16:06 +0000)]
Resolve problem #24, and introduce framework conversion data changes

This introduces the conv_state schema, where state is saved
that records "automatic" changes the conversion makes to the
converted data.  When the MS Access data is changed and
the conversion re-run, the "new" automatic changes can be compared
to the changes made to the previous data set.

The "compare-state" make target can be used to report differences
between the old and new data.  Review this report to ensure
that the automated "fixes" do not change something that should
not be changed.

3 weeks agoIndentation
Karl O. Pinc kop@karlpinc.com [Tue, 5 May 2026 12:12:01 +0000 (12:12 +0000)]
Indentation

3 weeks agoBe consistent in use of "continuation" make targets
Karl O. Pinc kop@karlpinc.com [Sun, 3 May 2026 22:49:07 +0000 (22:49 +0000)]
Be consistent in use of "continuation" make targets

3 weeks agoProblem #11 is resolved in Access
Stevan [Fri, 1 May 2026 16:55:57 +0000 (16:55 +0000)]
Problem #11 is resolved in Access

3 weeks agochange BIOGRAPHY_DATA.animidnum values of 0 to NULL
Stevan [Fri, 1 May 2026 15:44:04 +0000 (15:44 +0000)]
change BIOGRAPHY_DATA.animidnum values of 0 to NULL

Solves problem #59

2 months agoFix broken link and improve date and time docs
Karl O. Pinc kop@karlpinc.com [Fri, 13 Mar 2026 19:07:40 +0000 (19:07 +0000)]
Fix broken link and improve date and time docs

2 months agoMake ESTRUS_STATES table and indexes
Karl O. Pinc kop@karlpinc.com [Sun, 1 Mar 2026 01:04:53 +0000 (01:04 +0000)]
Make ESTRUS_STATES table and indexes

2 months agoCreate ESTRUS_SOURCES table and indexes
Karl O. Pinc kop@karlpinc.com [Sun, 1 Mar 2026 00:35:50 +0000 (00:35 +0000)]
Create ESTRUS_SOURCES table and indexes

2 months agoCreate SIGHTING_RECORDS table and indexes
Karl O. Pinc kop@karlpinc.com [Sun, 1 Mar 2026 00:04:02 +0000 (00:04 +0000)]
Create SIGHTING_RECORDS table and indexes

2 months agoAdd ARRIVALS.Seq column to DDL
Karl O. Pinc kop@karlpinc.com [Sun, 1 Mar 2026 00:01:37 +0000 (00:01 +0000)]
Add ARRIVALS.Seq column to DDL

2 months agoInitial ESTRUS_STATES design
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 22:52:41 +0000 (22:52 +0000)]
Initial ESTRUS_STATES design

2 months agoNew ESTRUS_SOURCES table to support non-SokweDB estrus data sources
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 22:52:00 +0000 (22:52 +0000)]
New ESTRUS_SOURCES table to support non-SokweDB estrus data sources

2 months agoUpdate SIGHTING_SOURCES to support estrus data
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 22:50:08 +0000 (22:50 +0000)]
Update SIGHTING_SOURCES to support estrus data

2 months agoSIGHTING_SOURCES contains old BRec data
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 22:49:17 +0000 (22:49 +0000)]
SIGHTING_SOURCES contains old BRec data

2 months agoNote problems with per-page HTML when file names are changed
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 18:57:55 +0000 (18:57 +0000)]
Note problems with per-page HTML when file names are changed

"make clean-docs" must be run to be sure old html content is removed.

2 months agoClarify when CYCLE_STATES.AsNum should be NULL
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 18:09:23 +0000 (18:09 +0000)]
Clarify when CYCLE_STATES.AsNum should be NULL

2 months agoAdd missing substitution reference for CYCLE_STATES.AsNum
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 17:57:20 +0000 (17:57 +0000)]
Add missing substitution reference for CYCLE_STATES.AsNum

2 months agoMove date restriction rule from analysis results to source data table
Karl O. Pinc kop@karlpinc.com [Sat, 28 Feb 2026 17:51:42 +0000 (17:51 +0000)]
Move date restriction rule from analysis results to source data table

2 months agoTweak wording
Karl O. Pinc kop@karlpinc.com [Fri, 27 Feb 2026 20:18:33 +0000 (20:18 +0000)]
Tweak wording

2 months agoCreate a separate section for tables populated automatically
Karl O. Pinc kop@karlpinc.com [Fri, 27 Feb 2026 20:09:25 +0000 (20:09 +0000)]
Create a separate section for tables populated automatically

2 months agoAlphabetize
Karl O. Pinc kop@karlpinc.com [Fri, 27 Feb 2026 19:21:32 +0000 (19:21 +0000)]
Alphabetize

2 months agoSIGHTINGS does not contain estrus information
Karl O. Pinc kop@karlpinc.com [Fri, 27 Feb 2026 18:17:28 +0000 (18:17 +0000)]
SIGHTINGS does not contain estrus information

2 months agoSpelling: estrous -> estrus
Karl O. Pinc kop@karlpinc.com [Fri, 27 Feb 2026 18:12:19 +0000 (18:12 +0000)]
Spelling: estrous -> estrus

2 months agoSupport local m4 include files
Karl O. Pinc kop@karlpinc.com [Fri, 20 Feb 2026 21:31:50 +0000 (21:31 +0000)]
Support local m4 include files

"Local" include files are in db/schemas/*/<type>/include/, where
"<type>" is functions, indexes, tables, triggers, etc.

2 months agoProduce the "drop notices" when dropping -- use correct file
Karl O. Pinc kop@karlpinc.com [Sat, 14 Feb 2026 23:08:02 +0000 (23:08 +0000)]
Produce the "drop notices" when dropping -- use correct file