Opened 23 months ago
Last modified 22 months ago
#3045 assigned enhancement
Taxonomy Family Table Refactoring, Summary
| Reported by: | Benjamin Haag | Owned by: | Benjamin Haag |
|---|---|---|---|
| Priority: | critical | Milestone: | Next Release - Server |
| Component: | Database, Schema Changes | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | karen.kittell@…, melanie.schori@… | Database Engine: | N/A |
| Operating System: | N/A |
Description (last modified by )
This ticket is to provide an overview of the family table refactoring task, for more efficient reference.
Overview
To better represent the zero/one-to-many relationship between family and infrafamilial records, and to enable more efficient searches, the taxonomy_family table will be refactored into the tables listed below.
| Table Name | Note |
|---|---|
| taxonomy_family | Remove infrafamlial name fields |
| taxonomy_subfamily | New |
| taxonomy_tribe | New |
| taxonomy_subtribe | New |
| taxonomy_family_map | New |
The taxonomy_family_map table, as its name indicates, will store the infrafamilial relationships that are currently stored within the infrafamilial text fields in the taxonomy_family table. This will allow a more efficient and less complex representation of the zero-many relationships that currently exist between relevant families and infrafamilial records.
Related Tickets
https://npgsweb.ars-grin.gov/trac/GG/ticket/2424
https://npgsweb.ars-grin.gov/trac/GG/ticket/2469
https://npgsweb.ars-grin.gov/trac/GG/ticket/2425
https://npgsweb.ars-grin.gov/trac/GG/ticket/2426
Attachments (5)
Change History (12)
comment:1 by , 23 months ago
| Description: | modified (diff) |
|---|
comment:2 by , 23 months ago
| Description: | modified (diff) |
|---|
by , 23 months ago
| Attachment: | splitfamily.sql added |
|---|
by , 23 months ago
| Attachment: | Taxonomy table changes.pptx added |
|---|
Summary of changes (developed by Melanie Schori)
comment:3 by , 23 months ago
| Cc: | added |
|---|---|
| Description: | modified (diff) |
comment:4 by , 23 months ago
| Cc: | added; removed |
|---|
by , 23 months ago
| Attachment: | Family Table Infrafamilial Refactoring.sql added |
|---|
Refreshes data within refactored family tables
comment:6 by , 22 months ago
Attached the following files:
| File | Descrikptkon |
|---|---|
| Trac_3045_Table_Scripts.sql | Drops and creates tables |
| Trac_3054_Data.sql | Populates tables |
NOTE
The table taxonomy_family2 will become taxonomy_family once all changes related to these tables are complete. The table structure will remain the same.
comment:7 by , 22 months ago
SQL scripts updated. All references to taxonomy_family2 are now taxonomy_family_parent.

SQL that that normalizes existing taxonommy_family data (developed by Kurt Endress)