Skip to content

Fixes Generation Cache migrations#1352

Merged
chrisknoll merged 48 commits into
masterfrom
issue-1351
Oct 25, 2019
Merged

Fixes Generation Cache migrations#1352
chrisknoll merged 48 commits into
masterfrom
issue-1351

Conversation

@wivern

@wivern wivern commented Oct 24, 2019

Copy link
Copy Markdown
Contributor

resolves #1351

wivern added 30 commits March 21, 2019 19:20
# Conflicts:
#	pom.xml
#	src/main/java/org/ohdsi/webapi/cohortcharacterization/GenerateCohortCharacterizationTasklet.java
#	src/main/resources/resources/cohortcharacterizations/sql/prevalenceWithCriteria.sql
# Conflicts:
#	src/main/java/org/ohdsi/webapi/cohortcharacterization/CcServiceImpl.java
# Conflicts:
#	src/main/java/org/ohdsi/webapi/cohortcharacterization/GenerateCohortCharacterizationTasklet.java
# Conflicts:
#	src/main/java/org/ohdsi/webapi/service/FeatureExtractionService.java
@wivern wivern requested review from chrisknoll and pavgra October 24, 2019 15:00
ALTER TABLE ${ohdsiSchema}.generation_cache ADD CONSTRAINT uq_gc_result UNIQUE (type, source_id, result_identifier); No newline at end of file
ALTER TABLE ${ohdsiSchema}.generation_cache ADD CONSTRAINT uq_gc_result UNIQUE (type, source_id, result_identifier);

CREATE TRIGGER ${ohdsiSchema}.DefaultDateForGenerationCache BEFORE INSERT ON ${ohdsiSchema}.generation_cache

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Triggers are forbidden. They have different semantics between platforms. If a value should be inserted, we should handle it in the data-tier.

@chrisknoll chrisknoll merged commit d565bd2 into master Oct 25, 2019
@chrisknoll chrisknoll deleted the issue-1351 branch October 25, 2019 15:32
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.

NullPointerException in GenerationCacheHelper

2 participants