From: rameshiyer27 Date: Thu, 22 Jan 2026 13:42:50 +0000 (+0000) Subject: Add missing preconditions in liqibase changelogs X-Git-Tag: 9.0.0~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f51a237b1931bc3e430f987ce716001506570ad5;p=policy%2Fclamp.git Add missing preconditions in liqibase changelogs Issue-ID: POLICY-5536 Change-Id: I6941f42feea19c4175326400f3a2e9eb3efbe9e7 Signed-off-by: rameshiyer27 --- diff --git a/runtime-acm/src/main/resources/db/changelog/changelog-1800.yaml b/runtime-acm/src/main/resources/db/changelog/changelog-1800.yaml index 99d534e94..77eb8ba38 100644 --- a/runtime-acm/src/main/resources/db/changelog/changelog-1800.yaml +++ b/runtime-acm/src/main/resources/db/changelog/changelog-1800.yaml @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved. +# Copyright (C) 2025-2026 OpenInfra Foundation Europe. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,6 +22,11 @@ databaseChangeLog: - changeSet: author: policy id: 1800-1 + preConditions: + - onFail: MARK_RAN + - columnExists: + tableName: AutomationCompositionElement + columnName: restarting changes: - dropColumn: tableName: AutomationCompositionElement @@ -37,6 +42,11 @@ databaseChangeLog: - changeSet: author: policy id: 1800-2 + preConditions: + - onFail: MARK_RAN + - columnExists: + tableName: NodeTemplateState + columnName: restarting changes: - dropColumn: tableName: NodeTemplateState @@ -52,6 +62,12 @@ databaseChangeLog: - changeSet: author: policy id: 1800-3 + preConditions: + - onFail: MARK_RAN + - not: + - columnExists: + tableName: AutomationCompositionElement + columnName: migrationState changes: - addColumn: tableName: AutomationCompositionElement