Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#1906 closed enhancement (fixed)

Create taxonomy_regulation Table

Reported by: Melanie Schori Owned by: Benjamin Haag
Priority: major Milestone: Server 1.10.6
Component: Database, Schema Changes Version: N/A
Severity: Keywords:
Cc: karen.kittell@…, kurt.endress@… Database Engine: N/A
Operating System: N/A

Description

Please create a new table, taxonomy_noxious_level, to store information defining the different (mostly state-specific) noxious level classifications.

The table will need the level ID (primary key), geography_id (fkey), noxious_type (from code value table; moved out of taxonomy_noxious), noxious_level (from code value table; moved out of taxonomy_noxious), level_description (text field to contain state-specific description), URL1 (moved out of taxonomy_noxious), URL2, and note as its fields.

The taxonomy_noxious table will then need a lookup picker that can display the state, the type, and the level to pull taxonomy_noxious_level_id as a foreign key.

Attachments (2)

Noxious level table.xlsx​ (8.6 KB ) - added by Melanie Schori 7 years ago.
Trac_1906.sql​ (1.6 KB ) - added by Benjamin Haag 7 years ago.
Dataview SQL

Download all attachments as: .zip

Change History (14)

by Melanie Schori, 7 years ago

Attachment: Noxious level table.xlsx​ added

comment:1 by Melanie Schori, 7 years ago

The attached spreadsheet provides an overview of what data are currently stored in noxious type and noxious level with respect to geography information.

comment:2 by Melanie Schori, 7 years ago

Cc: karen.kittell@… added

After AdCom discussion on 9/24, this table is going to be called taxonomy_regulation_level instead to reflect that not all data represent noxious weeds. All instances of "noxious" should be replaced with "regulation" in the field names.

The NARCOTIC restriction code is going to be added to regulation_type (moved from taxonomy_species, used for three taxa of Papaver somnifera). Also, CITESI, II, III, and FWE and FWT are going to be moved from taxonomy_use to regulation_type. For the CITES records, a geography record (and associated code value and code value language table entries) for "worldwide" or WRL will need to be added to the geography table because CITES regulations apply to all countries. Moving these code values will allow all the regulation data to be stored in one table.

The current taxonomy_noxious table will be replaced by a new taxonomy_regulation table, which will have family, genus, species, regulation_level, and note.

Subsequent changes will need to be made to the PW and packing slips to reflect the changed names and sources of data.

comment:3 by Melanie Schori, 7 years ago

Kurt has pointed out that the table naming rules would dictate that "taxonomy_regulation" should properly be "taxonomy_regulation_map" and that "taxonomy_regulation_level" should be "taxonomy_regulation".

comment:4 by Benjamin Haag, 7 years ago

Milestone: → Next Release - Server
Priority: medium → major
Status: new → addressed

The following tables now exist, with data, on dev:

Name Description

=============

taxonomy_regulation Stores all regulation codes and levels per U.S. state and

territory, along with URL references.

taxonomy_regulation_map Maps a regulation to a family, genus, or species record.

comment:5 by Benjamin Haag, 7 years ago

Summary: create taxonomy_noxious_level table → FOR RELEASE: Create taxonomy_noxious_level Table

comment:6 by Benjamin Haag, 7 years ago

Summary: FOR RELEASE: Create taxonomy_noxious_level Table → FOR RELEASE: Create taxonomy_regulationTable

comment:7 by Benjamin Haag, 7 years ago

Summary: FOR RELEASE: Create taxonomy_regulationTable → FOR RELEASE: Create taxonomy_regulation Table

Update

This ticket covers two tables:
taxonomy_regulation contains regulations and levels, per geographic region.
taxonomy_regulation_map cross-references a family, genus, or species to one or more regulations.

comment:8 by Benjamin Haag, 7 years ago

Milestone: Next Release - Server → Server 1.10.6
Summary: FOR RELEASE: Create taxonomy_regulation Table → Create taxonomy_regulation Table

comment:9 by Benjamin Haag, 7 years ago

Created the following dataviews on dev (see attached SQL):
taxonomy_regulation_lookup
get_taxonomy_regulation_map

comment:10 by Benjamin Haag, 7 years ago

Cc: kurt.endress@… added

by Benjamin Haag, 7 years ago

Attachment: Trac_1906.sql​ added

Dataview SQL

comment:11 by Benjamin Haag, 7 years ago

Resolution: → fixed
Status: addressed → closed

comment:12 by Benjamin Haag, 6 years ago

Component: Database, Data Updates → Database, Schema Changes
Note: See TracTickets for help on using tickets.