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 Benjamin Haag)

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)

splitfamily.sql​ (6.0 KB ) - added by Benjamin Haag 23 months ago.
SQL that that normalizes existing taxonommy_family data (developed by Kurt Endress)
Taxonomy table changes.pptx​ (154.7 KB ) - added by Benjamin Haag 23 months ago.
Summary of changes (developed by Melanie Schori)
Family Table Infrafamilial Refactoring.sql​ (8.0 KB ) - added by Benjamin Haag 23 months ago.
Refreshes data within refactored family tables
Trac_3054_Data.sql​ (8.2 KB ) - added by Benjamin Haag 22 months ago.
SQL used to populate new tables.
Trac_3045_Table_Scripts.sql​ (15.7 KB ) - added by Benjamin Haag 22 months ago.
SQL used to create tables.

Download all attachments as: .zip

Change History (12)

comment:1 by Benjamin Haag, 23 months ago

Description: modified (diff)

comment:2 by Benjamin Haag, 23 months ago

Description: modified (diff)

by Benjamin Haag, 23 months ago

Attachment: splitfamily.sql​ added

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

by Benjamin Haag, 23 months ago

Attachment: Taxonomy table changes.pptx​ added

Summary of changes (developed by Melanie Schori)

comment:3 by Benjamin Haag, 23 months ago

Cc: karen.kittel@… melanie.schori@… added
Description: modified (diff)

comment:4 by Kay Kittell, 23 months ago

Cc: karen.kittell@… added; karen.kittel@… removed

by Benjamin Haag, 23 months ago

Refreshes data within refactored family tables

comment:5 by Benjamin Haag, 23 months ago

All tables are in place on dev.

comment:6 by Benjamin Haag, 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.

by Benjamin Haag, 22 months ago

Attachment: Trac_3054_Data.sql​ added

SQL used to populate new tables.

by Benjamin Haag, 22 months ago

Attachment: Trac_3045_Table_Scripts.sql​ added

SQL used to create tables.

comment:7 by Benjamin Haag, 22 months ago

SQL scripts updated. All references to taxonomy_family2 are now taxonomy_family_parent.

Note: See TracTickets for help on using tickets.