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 )
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)
Change History (5)
comment:1 by , 4 years ago
| Description: | modified (diff) |
|---|---|
| Status: | assigned → accepted |
by , 4 years ago
| Attachment: | Trac_2802.sql added |
|---|
comment:2 by , 4 years ago
Additional step:
6) Create new dataviews:
6.1) get_economic_usage_type
6.2) economic_usage_type_lookup
comment:3 by , 4 years ago
Changes to web dataviews to be verified with Kay Kittell (along with any necessary PW code changes).
comment:4 by , 4 years ago
| Cc: | added |
|---|

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