-
Notifications
You must be signed in to change notification settings - Fork 0
fix/#6894 Logical Keys for Monitoring Plan Import #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
fix/#6894 Logical Keys for Monitoring Plan Import #207
Conversation
…keys in the related workspace tables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you got all of them! I noticed the unit_fuel
table already has the unique constraint defined, so it was correctly omitted here.
There are a few keys that specify MON_LOC_ID as part of the key, when that column doesn't exist in the table. Removing it from the definitions resolves the issues, and aligns the constraints with those specified in the issue.
|
||
ALTER TABLE camdecmpswks.monitor_qualification_pct | ||
ADD CONSTRAINT uq_monitor_qualification_pct_key | ||
UNIQUE (MON_LOC_ID, MON_QUAL_ID, QUAL_YEAR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This table doesn't have a MON_LOC_ID column.
UNIQUE (MON_LOC_ID, MON_QUAL_ID, QUAL_YEAR); | |
UNIQUE (MON_QUAL_ID, QUAL_YEAR); |
|
||
ALTER TABLE camdecmpswks.monitor_qualification_lme | ||
ADD CONSTRAINT uq_monitor_qualification_lme_key | ||
UNIQUE (MON_LOC_ID, MON_QUAL_ID, QUAL_YEAR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This table doesn't have a MON_LOC_ID column.
UNIQUE (MON_LOC_ID, MON_QUAL_ID, QUAL_YEAR); | |
UNIQUE (MON_QUAL_ID, QUAL_YEAR); |
|
||
ALTER TABLE camdecmpswks.monitor_qualification_lee | ||
ADD CONSTRAINT uq_monitor_qualification_lee_key | ||
UNIQUE MON_LOC_ID, (MON_QUAL_ID, QUAL_TEST_DATE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This table doesn't have a MON_LOC_ID column.
UNIQUE MON_LOC_ID, (MON_QUAL_ID, QUAL_TEST_DATE); | |
UNIQUE (MON_QUAL_ID, QUAL_TEST_DATE); |
Related Ticket:
Updates: