From 83e9175d445f169b27479d7022e2d7eff225cb83 Mon Sep 17 00:00:00 2001 From: Pascal Wilbrink Date: Wed, 11 Dec 2024 17:30:11 +0100 Subject: [PATCH] Create v1_5__add_is_deleted_flag.sql Added is_deleted flag on scl_file Signed-off-by: Pascal Wilbrink --- .../db/migration/v1_5__add_is_deleted_flag.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 repository-postgresql/src/main/resources/org/lfenergy/compas/scl/data/repository/postgresql/db/migration/v1_5__add_is_deleted_flag.sql diff --git a/repository-postgresql/src/main/resources/org/lfenergy/compas/scl/data/repository/postgresql/db/migration/v1_5__add_is_deleted_flag.sql b/repository-postgresql/src/main/resources/org/lfenergy/compas/scl/data/repository/postgresql/db/migration/v1_5__add_is_deleted_flag.sql new file mode 100644 index 00000000..216ecf0a --- /dev/null +++ b/repository-postgresql/src/main/resources/org/lfenergy/compas/scl/data/repository/postgresql/db/migration/v1_5__add_is_deleted_flag.sql @@ -0,0 +1,14 @@ +/** + * SPDX-FileCopyrightText: 2021 Alliander N.V. + * + * SPDX-License-Identifier: Apache-2.0 +*/ + +-- +-- Update SCL File Table to add soft deletion +-- + +ALTER TABLE scl_file +ADD COLUMN is_deleted BOOLEAN DEFAULT false; + +comment on column scl_file.is_deleted is 'Flag is the SCL File is deleted.';