Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#1892 closed defect (fixed)

character length for CWR breeding_usage

Reported by: Melanie Schori Owned by: Benjamin Haag
Priority: critical Milestone: Server 1.10.5
Component: Database, Schema Changes Version: N/A
Severity: Keywords:
Cc: quinn.sinnott@…, benjamin.haag@…, gary.kinard@… Database Engine: N/A
Operating System: N/A

Description

The allowable character length for the breeding_usage field in taxonomy_CWR needs to be increased. The current character max is 100, and there are multiple records that I can't create because the breeding usage (fungal and virus names) are being truncated. The longest text string that is needs to be pasted in is 330 characters, but future records could have longer lists of diseases. I do not want to create separate records for each different disease when the disease resistance is present in the same taxon and is reported in the same citation. Please increase the character limit to 1000 or to the max allowable so I can create the 559 disease resistance records that are not already transferred into the database.

Change History (14)

comment:1 by Benjamin Haag, 7 years ago

Owner: changed from Kurt Endress to Benjamin Haag
Status: new → assigned

comment:2 by Benjamin Haag, 7 years ago

Implemented change on dev.

Related SQL:
ALTER TABLE taxonomy_cwr ALTER COLUMN breeding_usage NVARCHAR(MAX)

comment:3 by Melanie Schori, 7 years ago

Works on dev. Character limit could be set to 1000 - I don't anticipate longer strings being input into the field at this point.

comment:4 by Benjamin Haag, 7 years ago

Modified column; set width to 1000. See SQL below.

ALTER TABLE taxonomy_cwr ALTER COLUMN breeding_usage NVARCHAR(1000)

comment:5 by Melanie Schori, 7 years ago

Didn't actually work on dev before, but was just able to save "against curly top virus (<I>Beta</I> virus 1); beet mosaic virus (<I>Beta</I> mosaic virus 2-BMV), downy mildew (<I>Peronospora farinosa</I>), fungal diseases (<I>Cercospora beticola</I> and <I>Polymyxia betae</I>)"

comment:6 by Melanie Schori, 7 years ago

Change approved, please implement on production.

comment:7 by Benjamin Haag, 7 years ago

1) SQL (see ticket) run on production DB.
2) Table mapping modified in Admin Tool.

comment:8 by Benjamin Haag, 7 years ago

Status: assigned → addressed

comment:9 by Benjamin Haag, 7 years ago

Milestone: → Server 1.10.5

comment:10 by Benjamin Haag, 7 years ago

Status: addressed → released

comment:11 by Benjamin Haag, 7 years ago

Status: released → verified

comment:12 by Benjamin Haag, 7 years ago

Resolution

1) Change has been pushed to production and incorporated into build 1.10.5.
2) The taxonomy_cwr table is effectively deprecated.

comment:13 by Benjamin Haag, 7 years ago

Resolution: → fixed
Status: verified → closed

comment:14 by Benjamin Haag, 6 years ago

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