Upgrade 24 to 25 fails because db jpa changes drop nonexisting indexes.

Closes #34899

Signed-off-by: vramik <vramik@redhat.com>
This commit is contained in:
vramik 2024-11-14 10:11:55 +01:00 committed by Alexander Schwartz
parent 9050172448
commit ebd411b93d

View File

@ -41,10 +41,28 @@
<column name="LAST_SESSION_REFRESH" />
</createIndex>
</changeSet>
<changeSet author="keycloak" id="25.0.0-28265-index-cleanup">
<changeSet author="keycloak" id="25.0.0-28265-index-cleanup-uss-createdon">
<preConditions onFail="MARK_RAN" onSqlOutput="TEST">
<indexExists tableName="OFFLINE_USER_SESSION" indexName="IDX_OFFLINE_USS_CREATEDON" />
</preConditions>
<dropIndex tableName="OFFLINE_USER_SESSION" indexName="IDX_OFFLINE_USS_CREATEDON" />
</changeSet>
<changeSet author="keycloak" id="25.0.0-28265-index-cleanup-uss-preload">
<preConditions onFail="MARK_RAN" onSqlOutput="TEST">
<indexExists tableName="OFFLINE_USER_SESSION" indexName="IDX_OFFLINE_USS_PRELOAD" />
</preConditions>
<dropIndex tableName="OFFLINE_USER_SESSION" indexName="IDX_OFFLINE_USS_PRELOAD" />
</changeSet>
<changeSet author="keycloak" id="25.0.0-28265-index-cleanup-uss-by-usersess">
<preConditions onFail="MARK_RAN" onSqlOutput="TEST">
<indexExists tableName="OFFLINE_USER_SESSION" indexName="IDX_OFFLINE_USS_BY_USERSESS" />
</preConditions>
<dropIndex tableName="OFFLINE_USER_SESSION" indexName="IDX_OFFLINE_USS_BY_USERSESS" />
</changeSet>
<changeSet author="keycloak" id="25.0.0-28265-index-cleanup-css-preload">
<preConditions onFail="MARK_RAN" onSqlOutput="TEST">
<indexExists tableName="OFFLINE_CLIENT_SESSION" indexName="IDX_OFFLINE_CSS_PRELOAD" />
</preConditions>
<dropIndex tableName="OFFLINE_CLIENT_SESSION" indexName="IDX_OFFLINE_CSS_PRELOAD" />
</changeSet>
<changeSet author="keycloak" id="25.0.0-28265-index-2-mysql">