Opened 3 years ago

Last modified 22 months ago

#2822 accepted enhancement

Expand the uniqueness constraint in the NC7 site specific dataview

Reported by: Lisa Burke Owned by: Benjamin Haag
Priority: medium Milestone: ADCOM PRIORITY 2025
Component: Database, Schema Changes Version: N/A
Severity: Keywords: NC7 site specific Dataview
Cc: mark.millard@… Database Engine: N/A
Operating System: N/A

Description (last modified by Benjamin Haag)

It appears that a recent ticket from Mark Millard, which covers the creation of the table nc7_inventory_location_data, addresses this same issue. Is this true>

Change History (4)

comment:1 by Kurt Endress, 3 years ago

Component: Dataviews → Database, Schema Changes
Owner: changed from Kurt Endress to Benjamin Haag
Status: new → assigned

The site specific inventory tables were designed to have a one to one relationship with the inventory table. In effect they are an extension of the inventory table. Allowing multiple rows per inventory would break that concept. Maybe that wouldn't be the end of the world. Take it up with the database administrator, Benjamin, as it is a schema change, not a dataview change.

comment:2 by Lisa Burke, 3 years ago

Benjamin, Please look at this ticket and advise on the path forward.

comment:3 by Benjamin Haag, 3 years ago

Reqirement here is the ability to store one or more physical (storage) locations per inventory lot. The existing site-specific tables are designed to store custom fields per site. For this requirement, recommend a new table inventory_location, linked to inventory.

Specific field needs to be discussed. At minimum (aside from standard PK/FK and audit and note fields):
1) Location name
2) Location type (coded)

2.1) Ex. "GHSE Greenhouse" (if applicable)

comment:4 by Benjamin Haag, 22 months ago

Cc: mark.millard@… added
Description: modified (diff)
Milestone: → ADCOM PRIORITY 2025
Status: assigned → accepted

1) Recommend creating a table named inventory_storage_location

Note: See TracTickets for help on using tickets.