From 4b741c543bddb03ad9bc48ade5ce0c35adbd25f2 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Thu, 21 Aug 2025 15:15:25 +0100 Subject: [PATCH] Remove unneeded DB changes (Liquibase #12) Some DB changes are not needed. For example, setting the 'restarting' columns to NULL is not needed as those fields are no longer used. Also, updating subState when it is null in 1601 is not needed, as this change is also present in 1701. Issue-ID: POLICY-5398 Change-Id: Id59e3d1533ee316a1e7d69f75408e2b37b64d35c Signed-off-by: danielhanrahan --- .../resources/db/changelog/changelog-1500.yaml | 64 ---------------------- .../resources/db/changelog/changelog-1601.yaml | 56 ------------------- .../db/changelog/db.changelog-master.yaml | 2 - 3 files changed, 122 deletions(-) delete mode 100644 runtime-acm/src/main/resources/db/changelog/changelog-1601.yaml diff --git a/runtime-acm/src/main/resources/db/changelog/changelog-1500.yaml b/runtime-acm/src/main/resources/db/changelog/changelog-1500.yaml index e3b271f09..9af9b1b9c 100644 --- a/runtime-acm/src/main/resources/db/changelog/changelog-1500.yaml +++ b/runtime-acm/src/main/resources/db/changelog/changelog-1500.yaml @@ -155,67 +155,3 @@ databaseChangeLog: referencedColumnNames: participantId onUpdate: RESTRICT onDelete: RESTRICT - - - changeSet: - id: 1500-8 - author: policy - preConditions: - - onFail: MARK_RAN - - columnExists: - tableName: AutomationComposition - columnName: restarting - changes: - - update: - tableName: AutomationComposition - columns: - - column: - name: restarting - value: NULL - - - changeSet: - id: 1500-9 - author: policy - preConditions: - - onFail: MARK_RAN - - columnExists: - tableName: AutomationCompositionDefinition - columnName: restarting - changes: - - update: - tableName: AutomationCompositionDefinition - columns: - - column: - name: restarting - value: NULL - - - changeSet: - id: 1500-10 - author: policy - preConditions: - - onFail: MARK_RAN - - columnExists: - tableName: AutomationCompositionElement - columnName: restarting - changes: - - update: - tableName: AutomationCompositionElement - columns: - - column: - name: restarting - value: NULL - - - changeSet: - id: 1500-11 - author: policy - preConditions: - - onFail: MARK_RAN - - columnExists: - tableName: NodeTemplateState - columnName: restarting - changes: - - update: - tableName: NodeTemplateState - columns: - - column: - name: restarting - value: NULL diff --git a/runtime-acm/src/main/resources/db/changelog/changelog-1601.yaml b/runtime-acm/src/main/resources/db/changelog/changelog-1601.yaml deleted file mode 100644 index 2b4092e6c..000000000 --- a/runtime-acm/src/main/resources/db/changelog/changelog-1601.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# ============LICENSE_START======================================================= -# Copyright (C) 2025 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. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 -# ============LICENSE_END========================================================= - -databaseChangeLog: - - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - - - changeSet: - id: 1601-1 - author: policy - changes: - - update: - tableName: AutomationComposition - columns: - - column: - name: subState - valueNumeric: 0 - where: subState IS NULL - - - changeSet: - id: 1601-2 - author: policy - changes: - - update: - tableName: AutomationCompositionElement - columns: - - column: - name: subState - valueNumeric: 0 - where: subState IS NULL - - - changeSet: - id: 1601-3 - author: policy - changes: - - update: - tableName: AutomationCompositionElement - columns: - - column: - name: stage - valueNumeric: 0 - where: stage IS NULL diff --git a/runtime-acm/src/main/resources/db/changelog/db.changelog-master.yaml b/runtime-acm/src/main/resources/db/changelog/db.changelog-master.yaml index a98b648a1..4474c5d91 100644 --- a/runtime-acm/src/main/resources/db/changelog/db.changelog-master.yaml +++ b/runtime-acm/src/main/resources/db/changelog/db.changelog-master.yaml @@ -24,8 +24,6 @@ databaseChangeLog: file: db/changelog/changelog-1500.yaml - include: file: db/changelog/changelog-1600.yaml - - include: - file: db/changelog/changelog-1601.yaml - include: file: db/changelog/changelog-1700.yaml - include: -- 2.16.6