Skip to content

animallocation: write entries for death and exit #1476

@bobintetley

Description

@bobintetley

animallocation records need to be written when an exit movement is recorded and when the animal dies.

Primary reason is so that reports on animallocation do not need to look elsewhere and do union queries to fill in this data, like the "animal location history" report does.

Keeping the two in sync is going to be difficult. Add two new columns to animallocationhistory:

MovementID int
IsDeath int

This will make it easier for the update code to find the existing record and update it if necessary

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions