Skip to content

Commit

Permalink
Fix #1376: Liquibase on MSSQL throws error (#1377)
Browse files Browse the repository at this point in the history
* Set onError="MARK_RAN" for pa_operation_application_application_id_fk
  • Loading branch information
banterCZ authored Mar 5, 2024
1 parent e9c9213 commit f7beef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/PowerAuth-Server-1.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ Add foreign key constraints to relating table `pa_operation_application`.
Applying this change may fail if there is an inconsistency between tables `pa_operation_application`
and `pa_application` or `pa_operation`. Make sure that `pa_operation_application.application_id` contains references to
existing `pa_application.id` and `pa_operation_application.operation_id` contains references to
existing `pa_operation.id`. If necessary, manually remove orphaned records in `pa_operation_application`. Consider
creating a backup before this operation.
existing `pa_operation.id`.
Also the column type of `pa_operation_application.application_id` must be the same as the type of `pa_operation.id`.
If necessary, manually remove orphaned records in `pa_operation_application`.
Consider creating a backup before this operation.

### Add activation_id Column

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.9.xsd">

<changeSet id="1" logicalFilePath="powerauth-java-server/1.6.x/20231106-add-foreign-keys.xml" author="Jan Pesek">
<preConditions onFail="MARK_RAN">
<preConditions onFail="MARK_RAN" onError="MARK_RAN">
<not>
<foreignKeyConstraintExists foreignKeyTableName="pa_operation_application"
foreignKeyName="pa_operation_application_application_id_fk" />
Expand Down

0 comments on commit f7beef5

Please sign in to comment.