Fixing schema sql files

This commit is contained in:
Landry JUGE 2025-12-04 16:38:00 +01:00
parent 2cdf59a87e
commit 969debdd3e
2 changed files with 23 additions and 2 deletions

View File

@ -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
--;

View File

@ -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());
INSERT INTO `cloud`.`service_offering_category` (id, name, uuid) VALUES (1, 'Default', UUID());