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

fix: don't set hibernate auto-ddl DHIS2-18961 [2.40] #19882

Merged
merged 1 commit into from
Feb 8, 2025
Merged

Conversation

teleivo
Copy link
Contributor

@teleivo teleivo commented Feb 7, 2025

backport of #19871

its harder and harder to backport the changes from

#19856
#19870

as the configs are so different.

I cannot without a LOT of effort override the HibernateConfigurationProvider. The easiest solution I've found is adding a constructor specifically for H2 tests that passes in the hibernate value of "update". The default constructor which is used everywhere else uses "validate".

https://github.com/dhis2/dhis2-core/pull/19882/files#diff-daecdbfebb119b10e966c65ea0a410fb1d12ad88dee1586c8718e1588a1fb4f0R105-R120

@teleivo teleivo force-pushed the DHIS2-18961-2.40 branch 2 times, most recently from e00ba85 to 79e3dc9 Compare February 7, 2025 14:27
Copy link

sonarqubecloud bot commented Feb 7, 2025

@teleivo teleivo marked this pull request as ready for review February 7, 2025 15:12
@teleivo teleivo requested review from enricocolasante and a team February 7, 2025 15:12
@teleivo teleivo merged commit a03b9d2 into 2.40 Feb 8, 2025
14 of 15 checks passed
@teleivo teleivo deleted the DHIS2-18961-2.40 branch February 8, 2025 14:27
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.

2 participants