Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#1896 closed enhancement (fixed)

Create taxonomy_crop 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: melanie.schori@… Database Engine: N/A
Operating System: N/A

Description

It has become apparent that we need a taxonomy_crop table so that the CWR table can use a lookup to pull in the crop name, rather than requiring it to be typed every time.

Fields should be ID (primary key), taxonomy_species_id (fkey from taxonomy_species), crop_common_name, and note.

Table to be populated from taxonomy_crop_map for all records that have a value in common_crop_name, with alternate_crop_name going into the new crop_name field.

After this table is created and on production, corresponding data will need to be removed from taxonomy_crop_map, which should then be renamed and moved out of taxonomy, as the remaining data isn't relevant to taxonomy (descriptor group data).

Attachments (1)

taxonomy_crop.sql​ (1.5 KB ) - added by Benjamin Haag 7 years ago.

Download all attachments as: .zip

Change History (20)

comment:1 by Benjamin Haag, 7 years ago

Status: new → accepted

comment:2 by Benjamin Haag, 7 years ago

Summary: taxonomy crop table → Create taxonomy_crop Table

comment:3 by Lisa Burke, 7 years ago

Approved by the GG AdCom CCB

by Benjamin Haag, 7 years ago

Attachment: taxonomy_crop.sql​ added

comment:4 by Benjamin Haag, 7 years ago

Created and populated table on dev:
1) Autoincrement PK field did not initialize at 1.
2) Nearly all taxonomy_crop_map records had NULL note field.

comment:5 by Benjamin Haag, 7 years ago

Cc: melanie.schori@… added

comment:6 by Benjamin Haag, 7 years ago

Amended, based on discussion with Melanie:
1) Table will not use taxonomy_species_id; it will be a lookup table.
2) Data to be initially populated from records in taxonomy_cwr where the note indicates "Compiled By".

comment:7 by Benjamin Haag, 7 years ago

Table has been modified on dev.

comment:8 by Benjamin Haag, 7 years ago

Milestone: → Next Release - Server
Summary: Create taxonomy_crop Table → FOR RELEASE: Create taxonomy_crop Table
Type: gap → enhancement

comment:9 by Benjamin Haag, 7 years ago

Status: accepted → addressed

comment:10 by Benjamin Haag, 7 years ago

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

comment:11 by Benjamin Haag, 7 years ago

Resolution

1) Table created as taxonomy_cwr_crop.
2) Change incorporated into Build 1.10.6.

comment:12 by Benjamin Haag, 7 years ago

Status: addressed → released

comment:13 by Benjamin Haag, 7 years ago

Resolution: → fixed
Status: released → closed

comment:14 by Benjamin Haag, 7 years ago

1) Re-populate table on dev.
2) Create and populate on:

2.1) Test
2.2) Prod

comment:15 by Benjamin Haag, 7 years ago

Resolution: fixed
Status: closed → reopened

comment:16 by Benjamin Haag, 7 years ago

Resolution: → fixed
Status: reopened → closed

comment:17 by Benjamin Haag, 7 years ago

Resolution: fixed
Status: closed → reopened

comment:18 by Benjamin Haag, 6 years ago

Resolution: → fixed
Status: reopened → closed

comment:19 by Benjamin Haag, 6 years ago

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