Skip to content
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

Entity sequence #329

Merged
merged 4 commits into from
Apr 2, 2018
Merged

Entity sequence #329

merged 4 commits into from
Apr 2, 2018

Conversation

anthonysena
Copy link
Collaborator

Continuation of work from @wivern as part of #324.

Add fix for Flyway migration for PostgreSQL. With this fix applied, the changes look good from my side for PostgreSQL. I've also added a commit to address a regression in another SQL Server flyway script for dropping the password/salt fields for the sec_user table per @chrisknoll's issue raised on: #327 (review)

Tagging @chen-regen for awareness and help testing on Oracle.

@anthonysena
Copy link
Collaborator Author

Noting that this is being tested by @pavgra and team on Oracle with sample data to ensure the entity sequencing does not trash any existing data.

SELECT setval('${ohdsiSchema}.concept_set_item_sequence', coalesce(max(concept_set_item_id), 1)) FROM ${ohdsiSchema}.concept_set_item;

-- concept_set_negative_controls_sequence already exists - no need to create
SELECT setval('${ohdsiSchema}.concept_set_negative_controls_sequence', coalesce(max(id), 1)) FROM ${ohdsiSchema}.concept_set_negative_controls;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wivern - I guess 'negative_controls_sequence'- not 'concept_set_negative_controls_sequence'?

@marpozh
Copy link
Contributor

marpozh commented Apr 1, 2018

@anthonysena, @pavgra, @wivern - I added some fixes after testing the oracle migration, it would be great if you review them. Also pay attention to the attached file with the states of the modified tables (before and after the migration).
oracle-migration-test.zip

@marpozh
Copy link
Contributor

marpozh commented Apr 1, 2018

@anthonysena, if you agree with changes and there are no questions - let's merge the pull request:)

@anthonysena
Copy link
Collaborator Author

@mpozhidaeva these changes look good from my side - thanks for including the before/after states for the tables impacted by this change. Since I opened this PR (based on the work your team did in the other fork) can you approve? I'll then get it merged into master. Thanks!

@anthonysena anthonysena merged commit 7576115 into master Apr 2, 2018
@anthonysena anthonysena mentioned this pull request Apr 10, 2018
@chrisknoll chrisknoll deleted the entity-sequence branch May 25, 2018 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants