Opened 4 years ago

Last modified 4 years ago

#2802 accepted enhancement

Create Economic Usage Type Table

Reported by: Benjamin Haag Owned by: Benjamin Haag
Priority: medium Milestone:
Component: Database, Schema Changes Version: N/A
Severity: Keywords:
Cc: melanie.schori@…, karen.kittell@… Database Engine: N/A
Operating System: N/A

Description (last modified by Benjamin Haag)

Move existing economic usage codes and types into a separate table:
1) Create new table taxonomy_usage_type.
2) Migrate data.
3) Replace existing code and type columns in taxonomy_use with FK reference to new table.
4) Modify the following dataviews, such that they link to the new table:

4.1) get_taxonomy_use
4.2) web_lookup_taxon_use_class
4.3) web_lookup_taxon_use_class_2
4.4) web_lookup_taxon_use_subclass
4.5) web_lookup_taxon_use_subclass_2

5) Coordinate any needed PW changes with Kay Kittel related to the World Economic Plants page (and any other components that use econ. use data).

Attachments (1)

Trac_2802.sql​ (3.4 KB ) - added by Benjamin Haag 4 years ago.
SQL used to create new table, alter existing table, and insert and update data.

Download all attachments as: .zip

Change History (5)

comment:1 by Benjamin Haag, 4 years ago

Description: modified (diff)
Status: assigned → accepted

by Benjamin Haag, 4 years ago

Attachment: Trac_2802.sql​ added

SQL used to create new table, alter existing table, and insert and update data.

comment:2 by Benjamin Haag, 4 years ago

Additional step:
6) Create new dataviews:

6.1) get_economic_usage_type
6.2) economic_usage_type_lookup

comment:3 by Benjamin Haag, 4 years ago

Changes to web dataviews to be verified with Kay Kittell (along with any necessary PW code changes).

Last edited 4 years ago by Benjamin Haag (previous) (diff)

comment:4 by Benjamin Haag, 4 years ago

Cc: melanie.schori@… karen.kittell@… added
Note: See TracTickets for help on using tickets.