From 969debdd3e0ec011345f54a863b4db85f5a1fe7e Mon Sep 17 00:00:00 2001 From: Landry JUGE Date: Thu, 4 Dec 2025 16:38:00 +0100 Subject: [PATCH] Fixing schema sql files --- .../db/schema-42210to42300-cleanup.sql | 20 +++++++++++++++++++ ...200to42300.sql => schema-42210to42300.sql} | 5 +++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 engine/schema/src/main/resources/META-INF/db/schema-42210to42300-cleanup.sql rename engine/schema/src/main/resources/META-INF/db/{schema-42200to42300.sql => schema-42210to42300.sql} (95%) diff --git a/engine/schema/src/main/resources/META-INF/db/schema-42210to42300-cleanup.sql b/engine/schema/src/main/resources/META-INF/db/schema-42210to42300-cleanup.sql new file mode 100644 index 00000000000..f9921cd6cca --- /dev/null +++ b/engine/schema/src/main/resources/META-INF/db/schema-42210to42300-cleanup.sql @@ -0,0 +1,20 @@ +-- Licensed to the Apache Software Foundation (ASF) under one +-- or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information +-- regarding copyright ownership. The ASF licenses this file +-- to you 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. + +--; +-- Schema upgrade cleanup from 4.22.1.0 to 4.22.3.0 +--; diff --git a/engine/schema/src/main/resources/META-INF/db/schema-42200to42300.sql b/engine/schema/src/main/resources/META-INF/db/schema-42210to42300.sql similarity index 95% rename from engine/schema/src/main/resources/META-INF/db/schema-42200to42300.sql rename to engine/schema/src/main/resources/META-INF/db/schema-42210to42300.sql index afccef905f2..20fad4dad95 100644 --- a/engine/schema/src/main/resources/META-INF/db/schema-42200to42300.sql +++ b/engine/schema/src/main/resources/META-INF/db/schema-42210to42300.sql @@ -16,7 +16,7 @@ -- under the License. --; --- Schema upgrade from 4.22.0.0 to 4.23.0.0 +-- Schema upgrade from 4.22.1.0 to 4.23.0.0 --; CREATE TABLE IF NOT EXISTS `cloud`.`service_offering_category` ( @@ -31,4 +31,5 @@ CREATE TABLE IF NOT EXISTS `cloud`.`service_offering_category` ( ALTER TABLE `cloud`.`service_offering` ADD COLUMN `category_id` bigint unsigned NOT NULL DEFAULT 1; ALTER TABLE `cloud`.`service_offering` ADD CONSTRAINT `fk_service_offering__category_id` FOREIGN KEY (`category_id`) REFERENCES `cloud`.`service_offering_category` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE; -INSERT INTO `cloud`.`service_offering_category` (id, name, uuid) VALUES (1, 'Default', UUID()); \ No newline at end of file +INSERT INTO `cloud`.`service_offering_category` (id, name, uuid) VALUES (1, 'Default', UUID()); +