Remove unneeded DB changes (Liquibase #12) 28/142028/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 21 Aug 2025 14:15:25 +0000 (15:15 +0100)
committerWayne Dunican <wayne.dunican@est.tech>
Wed, 17 Sep 2025 10:12:01 +0000 (10:12 +0000)
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 <daniel.hanrahan@est.tech>
runtime-acm/src/main/resources/db/changelog/changelog-1500.yaml
runtime-acm/src/main/resources/db/changelog/changelog-1601.yaml [deleted file]
runtime-acm/src/main/resources/db/changelog/db.changelog-master.yaml

index e3b271f..9af9b1b 100644 (file)
@@ -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 (file)
index 2b4092e..0000000
+++ /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
index a98b648..4474c5d 100644 (file)
@@ -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: