-
Notifications
You must be signed in to change notification settings - Fork 7
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
WIP MCP-1496 flyway scripts #165
Conversation
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.
@ianwolson I have added some preliminary comments.
The main ideas is that these tables should match the entity definitions under gov.va.vro.persistence.model,
Tomorrow, let's create an integration test to make sure that this happens.
Also, we need to delete this PR so you can start one. Since I started it, I cannot properly review it. Sorry about that
PRIMARY KEY(veteran_uuid), | ||
icn VARCHAR(128) NOT NULL UNIQUE, | ||
participant_id VARCHAR NOT NULL, | ||
edipi VARCHAR NOT NULL, |
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.
what is edipi?
@@ -0,0 +1,73 @@ | |||
CREATE TABLE IF NOT EXISTS veteran ( | |||
veteran_uuid VARCHAR(128) NOT NULL, | |||
PRIMARY KEY(veteran_uuid), |
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.
I prefer to have all key declarations at the end
participant_id VARCHAR NOT NULL, | ||
edipi VARCHAR NOT NULL, | ||
createdAt timestamp NOT NULL, | ||
updatedAt timestamp |
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 can also be NOT NULL
veteran_uuid VARCHAR(128) NOT NULL, | ||
PRIMARY KEY(veteran_uuid), | ||
icn VARCHAR(128) NOT NULL UNIQUE, | ||
participant_id VARCHAR NOT NULL, |
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.
why do some varchars have length and others not?
REFERENCES veteran(veteran_uuid), | ||
id VARCHAR(128) NOT NULL UNIQUE, | ||
id_type VARCHAR NOT NULL UNIQUE, | ||
incoming_status TIMESTAMP, |
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.
That's a varchar
|
||
CREATE TABLE IF NOT EXISTS assessment_result ( | ||
assessmentResult_uuid VARCHAR(128) NOT NULL, | ||
claim_uuid VARCHAR(128) NOT NULL, |
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.
I removed this. We just need contention_id. These table should match up with the entities in the persistence model.
CREATE TABLE IF NOT EXISTS evidence_summary_document ( | ||
esd_uuid VARCHAR(128) NOT NULL, | ||
contention_uuid VARCHAR NOT NULL, | ||
claim_uuid VARCHAR(128) NOT NULL, |
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 claim_uuid is also gone
CREATE TABLE IF NOT EXISTS claim ( | ||
claim_uuid VARCHAR(128) NOT NULL, | ||
PRIMARY KEY(claim_uuid), | ||
veteran_uuid VARCHAR(128) NOT NULL, |
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.
convention should be veteran_id instead of veteran_uuid
CONSTRAINT fk_contention_uuid | ||
FOREIGN KEY (contention_uuid) | ||
REFERENCES contention(contention_uuid), | ||
evidence_count VARCHAR(128) NOT NULL, |
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 is an integer type
CONSTRAINT fk_contention_uuid | ||
FOREIGN KEY (contention_uuid) | ||
REFERENCES contention(contention_uuid), | ||
evidence_count VARCHAR(128) NOT NULL, |
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 is an integer type
Feature Name
Description
What was the problem?
How does this fix it?
Jira Tickets
How to test this PR
Reminders
Roadmap wiki pages