Repository navigation
Add missing HSQL create and drop scripts for the app, DMN and event registry engines - #4333
Open
omartitouhi wants to merge 1 commit into
Open
omartitouhi wants to merge 1 commit into
omartitouhi wants to merge 1 commit into
Conversation
…egistry engines The app, DMN and event registry engines had no HSQL schema scripts since 7.1.0, so starting them on HSQL failed. The new scripts are copies of the H2 ones, with 'cascade constraints' replaced by 'cascade' in the drop scripts since HSQL rejects the former. The existing CMMN and common HSQL drop scripts had the same problem and are fixed too. Fixes flowable#4009
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4009
Since 7.1.0 the app, DMN and event registry engines create their schema from SQL scripts, but no HSQL scripts were added for them. Starting any of these engines on HSQL fails with:
Changes
flowable.hsql.create/drop.{app,dmn,eventregistry}.sql. They are copies of the H2 scripts. All create statements are valid HSQL.cascade constraintsindrop table. It only acceptscascade, which the engine and IDM HSQL drop scripts already use. The new drop scripts usecascade. The existing CMMN and common HSQL drop scripts also usedcascade constraints, so everydrop tablein them failed and the tables were never dropped. They now usecascadetoo.Testing
I ran the existing test suites against an in-memory HSQL database:
The DMN and event registry modules don't have
hsqldbas a test dependency, so for those I added the driver with-Dmaven.test.additionalClasspath.DmnEngineDropScriptsTestfailsEventEngineDropScriptsTestfailsCmmnEngineDropScriptsTest)unexpected token: CONSTRAINTSThis PR adds no HSQL upgrade scripts. Every HSQL database that uses these engines failed at startup on 7.1.0 or later, so no schema was ever created on those versions. A file-based HSQL database created on 7.0 or earlier would still skip the H2-only DMN and event registry steps 7200→7201 and 8101→8102, like the other engines that only ship some HSQL upgrade steps. I can add HSQL copies of those steps if you want them.
Check List:
*DropScriptsTestand engine tests cover this when run on HSQL; there is no HSQL CI job)