JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1 | -- |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 2 | -- ============LICENSE_START======================================================= |
| 3 | -- Copyright (C) 2024 Ericsson |
| 4 | -- Modifications Copyright (C) 2024 OpenInfra Foundation Europe |
| 5 | -- ================================================================================ |
| 6 | -- Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | -- you may not use this file except in compliance with the License. |
| 8 | -- You may obtain a copy of the License at |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 9 | -- |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 10 | -- http://www.apache.org/licenses/LICENSE-2.0 |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 11 | -- |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 12 | -- Unless required by applicable law or agreed to in writing, software |
| 13 | -- distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | -- See the License for the specific language governing permissions and |
| 16 | -- limitations under the License. |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 17 | -- |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 18 | -- SPDX-License-Identifier: Apache-2.0 |
| 19 | -- ============LICENSE_END========================================================= |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 20 | -- |
| 21 | |
| 22 | BEGIN; |
| 23 | |
| 24 | CREATE EXTENSION IF NOT EXISTS postgis; |
| 25 | CREATE EXTENSION IF NOT EXISTS postgis_topology; |
| 26 | |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 27 | GRANT USAGE ON SCHEMA topology to topology_exposure_user; |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 28 | GRANT SELECT ON ALL SEQUENCES IN SCHEMA topology TO topology_exposure_user; |
| 29 | GRANT SELECT ON ALL TABLES IN SCHEMA topology TO topology_exposure_user; |
| 30 | |
| 31 | CREATE SCHEMA IF NOT EXISTS ties_data; |
| 32 | ALTER SCHEMA ties_data OWNER TO topology_exposure_user; |
| 33 | SET default_tablespace = ''; |
| 34 | SET default_table_access_method = heap; |
| 35 | |
| 36 | SET ROLE 'topology_exposure_user'; |
| 37 | |
| 38 | -- Function to create CONSTRAINT only if it does not exists |
| 39 | CREATE OR REPLACE FUNCTION ties_data.create_constraint_if_not_exists ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 40 | t_name TEXT, c_name TEXT, constraint_sql TEXT |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 41 | ) |
| 42 | RETURNS void AS |
| 43 | $$ |
| 44 | BEGIN |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 45 | IF NOT EXISTS (SELECT constraint_name FROM information_schema.table_constraints WHERE table_name = t_name AND constraint_name = c_name) THEN |
| 46 | EXECUTE constraint_sql; |
| 47 | END IF; |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 48 | END; |
| 49 | $$ language 'plpgsql'; |
| 50 | |
| 51 | -- Update data schema exec status |
| 52 | INSERT INTO ties_model.execution_status("schema", "status") VALUES ('ties_data', 'success'); |
| 53 | |
| 54 | CREATE TABLE IF NOT EXISTS ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 55 | "id" VARCHAR(511), |
| 56 | "aSide_AntennaModule" VARCHAR(511), |
| 57 | "bSide_AntennaCapability" VARCHAR(511), |
| 58 | "CD_sourceIds" jsonb, |
| 59 | "CD_classifiers" jsonb, |
| 60 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 61 | ); |
| 62 | |
| 63 | ALTER TABLE ONLY ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 64 | |
| 65 | ALTER TABLE ONLY ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 66 | |
| 67 | ALTER TABLE ONLY ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 68 | |
| 69 | CREATE TABLE IF NOT EXISTS ties_data."AntennaCapability" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 70 | "id" VARCHAR(511), |
| 71 | "eUtranFqBands" jsonb, |
| 72 | "geranFqBands" jsonb, |
| 73 | "nRFqBands" jsonb, |
| 74 | "CD_sourceIds" jsonb, |
| 75 | "CD_classifiers" jsonb, |
| 76 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 77 | ); |
| 78 | |
| 79 | ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 80 | |
| 81 | ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 82 | |
| 83 | ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 84 | |
| 85 | CREATE TABLE IF NOT EXISTS ties_data."AntennaModule" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 86 | "id" VARCHAR(511), |
| 87 | "antennaModelNumber" TEXT, |
| 88 | "mechanicalAntennaBearing" BIGINT, |
| 89 | "mechanicalAntennaTilt" BIGINT, |
| 90 | "positionWithinSector" TEXT, |
| 91 | "totalTilt" BIGINT, |
| 92 | "electricalAntennaTilt" BIGINT, |
| 93 | "antennaBeamWidth" jsonb, |
| 94 | "geo-location" jsonb, |
| 95 | "CD_sourceIds" jsonb, |
| 96 | "CD_classifiers" jsonb, |
| 97 | "CD_decorators" jsonb, |
| 98 | "REL_FK_installed-at-site" VARCHAR(511), |
| 99 | "REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE" VARCHAR(511), |
| 100 | "REL_CD_sourceIds_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb, |
| 101 | "REL_CD_classifiers_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb, |
| 102 | "REL_CD_decorators_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb, |
| 103 | "REL_FK_grouped-by-sector" VARCHAR(511), |
| 104 | "REL_ID_SECTOR_GROUPS_ANTENNAMODULE" VARCHAR(511), |
| 105 | "REL_CD_sourceIds_SECTOR_GROUPS_ANTENNAMODULE" jsonb, |
| 106 | "REL_CD_classifiers_SECTOR_GROUPS_ANTENNAMODULE" jsonb, |
| 107 | "REL_CD_decorators_SECTOR_GROUPS_ANTENNAMODULE" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 108 | ); |
| 109 | |
| 110 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 111 | |
| 112 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 113 | |
| 114 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 115 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 116 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_sourceIds_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '[]'; |
| 117 | |
| 118 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_classifiers_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '[]'; |
| 119 | |
| 120 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_decorators_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '{}'; |
| 121 | |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 122 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '[]'; |
| 123 | |
| 124 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '[]'; |
| 125 | |
| 126 | ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '{}'; |
| 127 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 128 | CREATE TABLE IF NOT EXISTS ties_data."CloudNamespace" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 129 | "id" VARCHAR(511), |
| 130 | "name" TEXT, |
| 131 | "CD_sourceIds" jsonb, |
| 132 | "CD_classifiers" jsonb, |
| 133 | "CD_decorators" jsonb, |
| 134 | "REL_FK_deployed-on-nodeCluster" VARCHAR(511), |
| 135 | "REL_ID_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" VARCHAR(511), |
| 136 | "REL_CD_sourceIds_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb, |
| 137 | "REL_CD_classifiers_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb, |
| 138 | "REL_CD_decorators_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 139 | ); |
| 140 | |
| 141 | ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 142 | |
| 143 | ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 144 | |
| 145 | ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 146 | |
| 147 | ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_sourceIds_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '[]'; |
| 148 | |
| 149 | ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_classifiers_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '[]'; |
| 150 | |
| 151 | ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_decorators_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '{}'; |
| 152 | |
| 153 | CREATE TABLE IF NOT EXISTS ties_data."CloudSite" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 154 | "id" VARCHAR(511), |
| 155 | "name" TEXT, |
| 156 | "geo-location" jsonb, |
| 157 | "CD_sourceIds" jsonb, |
| 158 | "CD_classifiers" jsonb, |
| 159 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 160 | ); |
| 161 | |
| 162 | ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 163 | |
| 164 | ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 165 | |
| 166 | ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 167 | |
| 168 | CREATE TABLE IF NOT EXISTS ties_data."CloudifiedNF" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 169 | "id" VARCHAR(511), |
| 170 | "name" TEXT, |
| 171 | "CD_sourceIds" jsonb, |
| 172 | "CD_classifiers" jsonb, |
| 173 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 174 | ); |
| 175 | |
| 176 | ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 177 | |
| 178 | ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 179 | |
| 180 | ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 181 | |
| 182 | CREATE TABLE IF NOT EXISTS ties_data."ENodeBFunction" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 183 | "id" VARCHAR(511), |
| 184 | "eNBId" BIGINT, |
| 185 | "eNodeBPlmnId" jsonb, |
| 186 | "CD_sourceIds" jsonb, |
| 187 | "CD_classifiers" jsonb, |
| 188 | "CD_decorators" jsonb, |
| 189 | "REL_FK_managed-by-managedElement" VARCHAR(511), |
| 190 | "REL_ID_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" VARCHAR(511), |
| 191 | "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb, |
| 192 | "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb, |
| 193 | "REL_CD_decorators_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 194 | ); |
| 195 | |
| 196 | ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 197 | |
| 198 | ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 199 | |
| 200 | ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 201 | |
| 202 | ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '[]'; |
| 203 | |
| 204 | ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '[]'; |
| 205 | |
| 206 | ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '{}'; |
| 207 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 208 | CREATE TABLE IF NOT EXISTS ties_data."EUtranCell" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 209 | "id" VARCHAR(511), |
| 210 | "cellId" BIGINT, |
| 211 | "earfcndl" BIGINT, |
| 212 | "earfcnul" BIGINT, |
| 213 | "dlChannelBandwidth" BIGINT, |
| 214 | "earfcn" BIGINT, |
| 215 | "channelBandwidth" BIGINT, |
| 216 | "tac" BIGINT, |
| 217 | "duplexType" TEXT, |
| 218 | "CD_sourceIds" jsonb, |
| 219 | "CD_classifiers" jsonb, |
| 220 | "CD_decorators" jsonb, |
| 221 | "REL_FK_provided-by-enodebFunction" VARCHAR(511), |
| 222 | "REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL" VARCHAR(511), |
| 223 | "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb, |
| 224 | "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb, |
| 225 | "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb, |
| 226 | "REL_FK_grouped-by-sector" VARCHAR(511), |
| 227 | "REL_ID_SECTOR_GROUPS_EUTRANCELL" VARCHAR(511), |
| 228 | "REL_CD_sourceIds_SECTOR_GROUPS_EUTRANCELL" jsonb, |
| 229 | "REL_CD_classifiers_SECTOR_GROUPS_EUTRANCELL" jsonb, |
| 230 | "REL_CD_decorators_SECTOR_GROUPS_EUTRANCELL" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 231 | ); |
| 232 | |
| 233 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 234 | |
| 235 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 236 | |
| 237 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 238 | |
| 239 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '[]'; |
| 240 | |
| 241 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '[]'; |
| 242 | |
| 243 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '{}'; |
| 244 | |
| 245 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '[]'; |
| 246 | |
| 247 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '[]'; |
| 248 | |
| 249 | ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '{}'; |
| 250 | |
| 251 | CREATE TABLE IF NOT EXISTS ties_data."GNBCUCPFunction" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 252 | "id" VARCHAR(511), |
| 253 | "gNBCUName" TEXT, |
| 254 | "gNBId" BIGINT, |
| 255 | "gNBIdLength" BIGINT, |
| 256 | "pLMNId" jsonb, |
| 257 | "CD_sourceIds" jsonb, |
| 258 | "CD_classifiers" jsonb, |
| 259 | "CD_decorators" jsonb, |
| 260 | "REL_FK_managed-by-managedElement" VARCHAR(511), |
| 261 | "REL_ID_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" VARCHAR(511), |
| 262 | "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb, |
| 263 | "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb, |
| 264 | "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 265 | ); |
| 266 | |
| 267 | ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 268 | |
| 269 | ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 270 | |
| 271 | ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 272 | |
| 273 | ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '[]'; |
| 274 | |
| 275 | ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '[]'; |
| 276 | |
| 277 | ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '{}'; |
| 278 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 279 | CREATE TABLE IF NOT EXISTS ties_data."GNBCUUPFunction" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 280 | "id" VARCHAR(511), |
| 281 | "gNBId" BIGINT, |
| 282 | "gNBIdLength" BIGINT, |
| 283 | "CD_sourceIds" jsonb, |
| 284 | "CD_classifiers" jsonb, |
| 285 | "CD_decorators" jsonb, |
| 286 | "REL_FK_managed-by-managedElement" VARCHAR(511), |
| 287 | "REL_ID_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" VARCHAR(511), |
| 288 | "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb, |
| 289 | "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb, |
| 290 | "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 291 | ); |
| 292 | |
| 293 | ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 294 | |
| 295 | ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 296 | |
| 297 | ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 298 | |
| 299 | ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '[]'; |
| 300 | |
| 301 | ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '[]'; |
| 302 | |
| 303 | ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '{}'; |
| 304 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 305 | CREATE TABLE IF NOT EXISTS ties_data."GNBDUFunction" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 306 | "id" VARCHAR(511), |
| 307 | "gNBDUId" BIGINT, |
| 308 | "gNBId" BIGINT, |
| 309 | "gNBIdLength" BIGINT, |
| 310 | "dUpLMNId" jsonb, |
| 311 | "CD_sourceIds" jsonb, |
| 312 | "CD_classifiers" jsonb, |
| 313 | "CD_decorators" jsonb, |
| 314 | "REL_FK_managed-by-managedElement" VARCHAR(511), |
| 315 | "REL_ID_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" VARCHAR(511), |
| 316 | "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb, |
| 317 | "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb, |
| 318 | "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 319 | ); |
| 320 | |
| 321 | ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 322 | |
| 323 | ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 324 | |
| 325 | ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 326 | |
| 327 | ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '[]'; |
| 328 | |
| 329 | ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '[]'; |
| 330 | |
| 331 | ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '{}'; |
| 332 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 333 | CREATE TABLE IF NOT EXISTS ties_data."LTESectorCarrier" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 334 | "id" VARCHAR(511), |
| 335 | "sectorCarrierType" TEXT, |
| 336 | "CD_sourceIds" jsonb, |
| 337 | "CD_classifiers" jsonb, |
| 338 | "CD_decorators" jsonb, |
| 339 | "REL_FK_provided-by-enodebFunction" VARCHAR(511), |
| 340 | "REL_ID_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" VARCHAR(511), |
| 341 | "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb, |
| 342 | "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb, |
| 343 | "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb, |
| 344 | "REL_FK_used-by-euTranCell" VARCHAR(511), |
| 345 | "REL_ID_EUTRANCELL_USES_LTESECTORCARRIER" VARCHAR(511), |
| 346 | "REL_CD_sourceIds_EUTRANCELL_USES_LTESECTORCARRIER" jsonb, |
| 347 | "REL_CD_classifiers_EUTRANCELL_USES_LTESECTORCARRIER" jsonb, |
| 348 | "REL_CD_decorators_EUTRANCELL_USES_LTESECTORCARRIER" jsonb, |
| 349 | "REL_FK_used-antennaCapability" VARCHAR(511), |
| 350 | "REL_ID_LTESECTORCARRIER_USES_ANTENNACAPABILITY" VARCHAR(511), |
| 351 | "REL_CD_sourceIds_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb, |
| 352 | "REL_CD_classifiers_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb, |
| 353 | "REL_CD_decorators_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 354 | ); |
| 355 | |
| 356 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 357 | |
| 358 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 359 | |
| 360 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 361 | |
| 362 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '[]'; |
| 363 | |
| 364 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '[]'; |
| 365 | |
| 366 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '{}'; |
| 367 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 368 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '[]'; |
| 369 | |
| 370 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '[]'; |
| 371 | |
| 372 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '{}'; |
| 373 | |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 374 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]'; |
| 375 | |
| 376 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]'; |
| 377 | |
| 378 | ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '{}'; |
| 379 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 380 | CREATE TABLE IF NOT EXISTS ties_data."ManagedElement" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 381 | "id" VARCHAR(511), |
| 382 | "CD_sourceIds" jsonb, |
| 383 | "CD_classifiers" jsonb, |
| 384 | "CD_decorators" jsonb, |
| 385 | "REL_FK_deployed-as-cloudifiedNF" VARCHAR(511), |
| 386 | "REL_ID_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" VARCHAR(511), |
| 387 | "REL_CD_sourceIds_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb, |
| 388 | "REL_CD_classifiers_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb, |
| 389 | "REL_CD_decorators_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 390 | ); |
| 391 | |
| 392 | ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 393 | |
| 394 | ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 395 | |
| 396 | ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 397 | |
| 398 | ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '[]'; |
| 399 | |
| 400 | ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '[]'; |
| 401 | |
| 402 | ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '{}'; |
| 403 | |
| 404 | CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 405 | "id" VARCHAR(511), |
| 406 | "aSide_NFDeployment" VARCHAR(511), |
| 407 | "bSide_CloudNamespace" VARCHAR(511), |
| 408 | "CD_sourceIds" jsonb, |
| 409 | "CD_classifiers" jsonb, |
| 410 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 411 | ); |
| 412 | |
| 413 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 414 | |
| 415 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 416 | |
| 417 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 418 | |
| 419 | CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 420 | "id" VARCHAR(511), |
| 421 | "aSide_NFDeployment" VARCHAR(511), |
| 422 | "bSide_GNBCUCPFunction" VARCHAR(511), |
| 423 | "CD_sourceIds" jsonb, |
| 424 | "CD_classifiers" jsonb, |
| 425 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 426 | ); |
| 427 | |
| 428 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 429 | |
| 430 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 431 | |
| 432 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 433 | |
| 434 | CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 435 | "id" VARCHAR(511), |
| 436 | "aSide_NFDeployment" VARCHAR(511), |
| 437 | "bSide_GNBCUUPFunction" VARCHAR(511), |
| 438 | "CD_sourceIds" jsonb, |
| 439 | "CD_classifiers" jsonb, |
| 440 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 441 | ); |
| 442 | |
| 443 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 444 | |
| 445 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 446 | |
| 447 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 448 | |
| 449 | CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 450 | "id" VARCHAR(511), |
| 451 | "aSide_NFDeployment" VARCHAR(511), |
| 452 | "bSide_GNBDUFunction" VARCHAR(511), |
| 453 | "CD_sourceIds" jsonb, |
| 454 | "CD_classifiers" jsonb, |
| 455 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 456 | ); |
| 457 | |
| 458 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 459 | |
| 460 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 461 | |
| 462 | ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 463 | |
| 464 | CREATE TABLE IF NOT EXISTS ties_data."NFDeployment" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 465 | "id" VARCHAR(511), |
| 466 | "name" TEXT, |
| 467 | "CD_sourceIds" jsonb, |
| 468 | "CD_classifiers" jsonb, |
| 469 | "CD_decorators" jsonb, |
| 470 | "REL_FK_serviced-managedElement" VARCHAR(511), |
| 471 | "REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" VARCHAR(511), |
| 472 | "REL_CD_sourceIds_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb, |
| 473 | "REL_CD_classifiers_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb, |
| 474 | "REL_CD_decorators_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb, |
| 475 | "REL_FK_comprised-by-cloudifiedNF" VARCHAR(511), |
| 476 | "REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" VARCHAR(511), |
| 477 | "REL_CD_sourceIds_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb, |
| 478 | "REL_CD_classifiers_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb, |
| 479 | "REL_CD_decorators_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 480 | ); |
| 481 | |
| 482 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 483 | |
| 484 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 485 | |
| 486 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 487 | |
| 488 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_sourceIds_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '[]'; |
| 489 | |
| 490 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_classifiers_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '[]'; |
| 491 | |
| 492 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_decorators_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '{}'; |
| 493 | |
| 494 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_sourceIds_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '[]'; |
| 495 | |
| 496 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_classifiers_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '[]'; |
| 497 | |
| 498 | ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_decorators_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '{}'; |
| 499 | |
| 500 | CREATE TABLE IF NOT EXISTS ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 501 | "id" VARCHAR(511), |
| 502 | "aSide_NodeCluster" VARCHAR(511), |
| 503 | "bSide_CloudSite" VARCHAR(511), |
| 504 | "CD_sourceIds" jsonb, |
| 505 | "CD_classifiers" jsonb, |
| 506 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 507 | ); |
| 508 | |
| 509 | ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 510 | |
| 511 | ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 512 | |
| 513 | ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 514 | |
| 515 | CREATE TABLE IF NOT EXISTS ties_data."NRCellCU" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 516 | "id" VARCHAR(511), |
| 517 | "cellLocalId" BIGINT, |
| 518 | "nCI" BIGINT, |
| 519 | "nRTAC" BIGINT, |
| 520 | "plmnId" jsonb, |
| 521 | "CD_sourceIds" jsonb, |
| 522 | "CD_classifiers" jsonb, |
| 523 | "CD_decorators" jsonb, |
| 524 | "REL_FK_provided-by-gnbcucpFunction" VARCHAR(511), |
| 525 | "REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" VARCHAR(511), |
| 526 | "REL_CD_sourceIds_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb, |
| 527 | "REL_CD_classifiers_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb, |
| 528 | "REL_CD_decorators_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 529 | ); |
| 530 | |
| 531 | ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 532 | |
| 533 | ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 534 | |
| 535 | ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 536 | |
| 537 | ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_sourceIds_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '[]'; |
| 538 | |
| 539 | ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_classifiers_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '[]'; |
| 540 | |
| 541 | ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_decorators_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '{}'; |
| 542 | |
| 543 | CREATE TABLE IF NOT EXISTS ties_data."NRCellDU" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 544 | "id" VARCHAR(511), |
| 545 | "cellLocalId" BIGINT, |
| 546 | "nCI" BIGINT, |
| 547 | "nRPCI" BIGINT, |
| 548 | "nRTAC" BIGINT, |
| 549 | "CD_sourceIds" jsonb, |
| 550 | "CD_classifiers" jsonb, |
| 551 | "CD_decorators" jsonb, |
| 552 | "REL_FK_provided-by-gnbduFunction" VARCHAR(511), |
| 553 | "REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU" VARCHAR(511), |
| 554 | "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb, |
| 555 | "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb, |
| 556 | "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb, |
| 557 | "REL_FK_grouped-by-sector" VARCHAR(511), |
| 558 | "REL_ID_SECTOR_GROUPS_NRCELLDU" VARCHAR(511), |
| 559 | "REL_CD_sourceIds_SECTOR_GROUPS_NRCELLDU" jsonb, |
| 560 | "REL_CD_classifiers_SECTOR_GROUPS_NRCELLDU" jsonb, |
| 561 | "REL_CD_decorators_SECTOR_GROUPS_NRCELLDU" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 562 | ); |
| 563 | |
| 564 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 565 | |
| 566 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 567 | |
| 568 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 569 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 570 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '[]'; |
| 571 | |
| 572 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '[]'; |
| 573 | |
| 574 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '{}'; |
| 575 | |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 576 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '[]'; |
| 577 | |
| 578 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '[]'; |
| 579 | |
| 580 | ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '{}'; |
| 581 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 582 | CREATE TABLE IF NOT EXISTS ties_data."NRSectorCarrier" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 583 | "id" VARCHAR(511), |
| 584 | "arfcnDL" BIGINT, |
| 585 | "arfcnUL" BIGINT, |
| 586 | "frequencyDL" BIGINT, |
| 587 | "frequencyUL" BIGINT, |
| 588 | "bSChannelBwDL" BIGINT, |
| 589 | "CD_sourceIds" jsonb, |
| 590 | "CD_classifiers" jsonb, |
| 591 | "CD_decorators" jsonb, |
| 592 | "REL_FK_provided-by-gnbduFunction" VARCHAR(511), |
| 593 | "REL_ID_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" VARCHAR(511), |
| 594 | "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb, |
| 595 | "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb, |
| 596 | "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb, |
| 597 | "REL_FK_used-by-nrCellDu" VARCHAR(511), |
| 598 | "REL_ID_NRCELLDU_USES_NRSECTORCARRIER" VARCHAR(511), |
| 599 | "REL_CD_sourceIds_NRCELLDU_USES_NRSECTORCARRIER" jsonb, |
| 600 | "REL_CD_classifiers_NRCELLDU_USES_NRSECTORCARRIER" jsonb, |
| 601 | "REL_CD_decorators_NRCELLDU_USES_NRSECTORCARRIER" jsonb, |
| 602 | "REL_FK_used-antennaCapability" VARCHAR(511), |
| 603 | "REL_ID_NRSECTORCARRIER_USES_ANTENNACAPABILITY" VARCHAR(511), |
| 604 | "REL_CD_sourceIds_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb, |
| 605 | "REL_CD_classifiers_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb, |
| 606 | "REL_CD_decorators_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 607 | ); |
| 608 | |
| 609 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 610 | |
| 611 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 612 | |
| 613 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 614 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 615 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '[]'; |
| 616 | |
| 617 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '[]'; |
| 618 | |
| 619 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '{}'; |
| 620 | |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 621 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '[]'; |
| 622 | |
| 623 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '[]'; |
| 624 | |
| 625 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '{}'; |
| 626 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 627 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]'; |
| 628 | |
| 629 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]'; |
| 630 | |
| 631 | ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '{}'; |
| 632 | |
| 633 | CREATE TABLE IF NOT EXISTS ties_data."NodeCluster" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 634 | "id" VARCHAR(511), |
| 635 | "name" TEXT, |
| 636 | "CD_sourceIds" jsonb, |
| 637 | "CD_classifiers" jsonb, |
| 638 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 639 | ); |
| 640 | |
| 641 | ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 642 | |
| 643 | ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 644 | |
| 645 | ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 646 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 647 | CREATE TABLE IF NOT EXISTS ties_data."Sector" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 648 | "id" VARCHAR(511), |
| 649 | "sectorId" BIGINT, |
| 650 | "azimuth" DECIMAL, |
| 651 | "geo-location" jsonb, |
| 652 | "CD_sourceIds" jsonb, |
| 653 | "CD_classifiers" jsonb, |
| 654 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 655 | ); |
| 656 | |
| 657 | ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 658 | |
| 659 | ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 660 | |
| 661 | ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 662 | |
| 663 | CREATE TABLE IF NOT EXISTS ties_data."Site" ( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 664 | "id" VARCHAR(511), |
| 665 | "name" TEXT, |
| 666 | "geo-location" jsonb, |
| 667 | "CD_sourceIds" jsonb, |
| 668 | "CD_classifiers" jsonb, |
| 669 | "CD_decorators" jsonb |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 670 | ); |
| 671 | |
| 672 | ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]'; |
| 673 | |
| 674 | ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]'; |
| 675 | |
| 676 | ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_decorators" SET DEFAULT '{}'; |
| 677 | |
| 678 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 679 | 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 680 | 'PK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_id', |
| 681 | 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "PK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_id" PRIMARY KEY ("id");' |
| 682 | ); |
| 683 | |
| 684 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 685 | 'AntennaCapability', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 686 | 'PK_AntennaCapability_id', |
| 687 | 'ALTER TABLE ties_data."AntennaCapability" ADD CONSTRAINT "PK_AntennaCapability_id" PRIMARY KEY ("id");' |
| 688 | ); |
| 689 | |
| 690 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 691 | 'AntennaModule', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 692 | 'PK_AntennaModule_id', |
| 693 | 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "PK_AntennaModule_id" PRIMARY KEY ("id");' |
| 694 | ); |
| 695 | |
| 696 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 697 | 'CloudNamespace', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 698 | 'PK_CloudNamespace_id', |
| 699 | 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "PK_CloudNamespace_id" PRIMARY KEY ("id");' |
| 700 | ); |
| 701 | |
| 702 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 703 | 'CloudSite', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 704 | 'PK_CloudSite_id', |
| 705 | 'ALTER TABLE ties_data."CloudSite" ADD CONSTRAINT "PK_CloudSite_id" PRIMARY KEY ("id");' |
| 706 | ); |
| 707 | |
| 708 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 709 | 'CloudifiedNF', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 710 | 'PK_CloudifiedNF_id', |
| 711 | 'ALTER TABLE ties_data."CloudifiedNF" ADD CONSTRAINT "PK_CloudifiedNF_id" PRIMARY KEY ("id");' |
| 712 | ); |
| 713 | |
| 714 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 715 | 'ENodeBFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 716 | 'PK_ENodeBFunction_id', |
| 717 | 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "PK_ENodeBFunction_id" PRIMARY KEY ("id");' |
| 718 | ); |
| 719 | |
| 720 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 721 | 'EUtranCell', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 722 | 'PK_EUtranCell_id', |
| 723 | 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "PK_EUtranCell_id" PRIMARY KEY ("id");' |
| 724 | ); |
| 725 | |
| 726 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 727 | 'GNBCUCPFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 728 | 'PK_GNBCUCPFunction_id', |
| 729 | 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "PK_GNBCUCPFunction_id" PRIMARY KEY ("id");' |
| 730 | ); |
| 731 | |
| 732 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 733 | 'GNBCUUPFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 734 | 'PK_GNBCUUPFunction_id', |
| 735 | 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "PK_GNBCUUPFunction_id" PRIMARY KEY ("id");' |
| 736 | ); |
| 737 | |
| 738 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 739 | 'GNBDUFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 740 | 'PK_GNBDUFunction_id', |
| 741 | 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "PK_GNBDUFunction_id" PRIMARY KEY ("id");' |
| 742 | ); |
| 743 | |
| 744 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 745 | 'LTESectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 746 | 'PK_LTESectorCarrier_id', |
| 747 | 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "PK_LTESectorCarrier_id" PRIMARY KEY ("id");' |
| 748 | ); |
| 749 | |
| 750 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 751 | 'ManagedElement', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 752 | 'PK_ManagedElement_id', |
| 753 | 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "PK_ManagedElement_id" PRIMARY KEY ("id");' |
| 754 | ); |
| 755 | |
| 756 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 757 | 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 758 | 'PK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_id', |
| 759 | 'ALTER TABLE ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ADD CONSTRAINT "PK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_id" PRIMARY KEY ("id");' |
| 760 | ); |
| 761 | |
| 762 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 763 | 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 764 | 'PK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_id', |
| 765 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_id" PRIMARY KEY ("id");' |
| 766 | ); |
| 767 | |
| 768 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 769 | 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 770 | 'PK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_id', |
| 771 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_id" PRIMARY KEY ("id");' |
| 772 | ); |
| 773 | |
| 774 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 775 | 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 776 | 'PK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_id', |
| 777 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_id" PRIMARY KEY ("id");' |
| 778 | ); |
| 779 | |
| 780 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 781 | 'NFDeployment', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 782 | 'PK_NFDeployment_id', |
| 783 | 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "PK_NFDeployment_id" PRIMARY KEY ("id");' |
| 784 | ); |
| 785 | |
| 786 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 787 | 'NODECLUSTER_LOCATED_AT_CLOUDSITE', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 788 | 'PK_NODECLUSTER_LOCATED_AT_CLOUDSITE_id', |
| 789 | 'ALTER TABLE ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ADD CONSTRAINT "PK_NODECLUSTER_LOCATED_AT_CLOUDSITE_id" PRIMARY KEY ("id");' |
| 790 | ); |
| 791 | |
| 792 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 793 | 'NRCellCU', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 794 | 'PK_NRCellCU_id', |
| 795 | 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "PK_NRCellCU_id" PRIMARY KEY ("id");' |
| 796 | ); |
| 797 | |
| 798 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 799 | 'NRCellDU', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 800 | 'PK_NRCellDU_id', |
| 801 | 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "PK_NRCellDU_id" PRIMARY KEY ("id");' |
| 802 | ); |
| 803 | |
| 804 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 805 | 'NRSectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 806 | 'PK_NRSectorCarrier_id', |
| 807 | 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "PK_NRSectorCarrier_id" PRIMARY KEY ("id");' |
| 808 | ); |
| 809 | |
| 810 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 811 | 'NodeCluster', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 812 | 'PK_NodeCluster_id', |
| 813 | 'ALTER TABLE ties_data."NodeCluster" ADD CONSTRAINT "PK_NodeCluster_id" PRIMARY KEY ("id");' |
| 814 | ); |
| 815 | |
| 816 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 817 | 'Sector', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 818 | 'PK_Sector_id', |
| 819 | 'ALTER TABLE ties_data."Sector" ADD CONSTRAINT "PK_Sector_id" PRIMARY KEY ("id");' |
| 820 | ); |
| 821 | |
| 822 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 823 | 'Site', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 824 | 'PK_Site_id', |
| 825 | 'ALTER TABLE ties_data."Site" ADD CONSTRAINT "PK_Site_id" PRIMARY KEY ("id");' |
| 826 | ); |
| 827 | |
| 828 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 829 | 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 830 | 'FK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_aSide_AntennaModule', |
| 831 | 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "FK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_aSide_AntennaModule" FOREIGN KEY ("aSide_AntennaModule") REFERENCES ties_data."AntennaModule" (id) ON DELETE CASCADE;' |
| 832 | ); |
| 833 | |
| 834 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 835 | 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 836 | 'FK_AB3CEA707D389B107F1D10BC724542418E02ABEC', |
| 837 | 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "FK_AB3CEA707D389B107F1D10BC724542418E02ABEC" FOREIGN KEY ("bSide_AntennaCapability") REFERENCES ties_data."AntennaCapability" (id) ON DELETE CASCADE;' |
| 838 | ); |
| 839 | |
| 840 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 841 | 'AntennaModule', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 842 | 'FK_AntennaModule_REL_FK_installed-at-site', |
| 843 | 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "FK_AntennaModule_REL_FK_installed-at-site" FOREIGN KEY ("REL_FK_installed-at-site") REFERENCES ties_data."Site" (id) ON DELETE CASCADE;' |
| 844 | ); |
| 845 | |
| 846 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 847 | 'AntennaModule', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 848 | 'UNIQUE_AntennaModule_REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE', |
| 849 | 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "UNIQUE_AntennaModule_REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE" UNIQUE ("REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE");' |
| 850 | ); |
| 851 | |
| 852 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 853 | 'AntennaModule', |
| 854 | 'FK_AntennaModule_REL_FK_grouped-by-sector', |
| 855 | 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "FK_AntennaModule_REL_FK_grouped-by-sector" FOREIGN KEY ("REL_FK_grouped-by-sector") REFERENCES ties_data."Sector" (id) ON DELETE CASCADE;' |
| 856 | ); |
| 857 | |
| 858 | SELECT ties_data.create_constraint_if_not_exists( |
| 859 | 'AntennaModule', |
| 860 | 'UNIQUE_AntennaModule_REL_ID_SECTOR_GROUPS_ANTENNAMODULE', |
| 861 | 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "UNIQUE_AntennaModule_REL_ID_SECTOR_GROUPS_ANTENNAMODULE" UNIQUE ("REL_ID_SECTOR_GROUPS_ANTENNAMODULE");' |
| 862 | ); |
| 863 | |
| 864 | SELECT ties_data.create_constraint_if_not_exists( |
| 865 | 'CloudNamespace', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 866 | 'FK_CloudNamespace_REL_FK_deployed-on-nodeCluster', |
| 867 | 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "FK_CloudNamespace_REL_FK_deployed-on-nodeCluster" FOREIGN KEY ("REL_FK_deployed-on-nodeCluster") REFERENCES ties_data."NodeCluster" (id) ON DELETE CASCADE;' |
| 868 | ); |
| 869 | |
| 870 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 871 | 'CloudNamespace', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 872 | 'UNIQUE_C72E1EF93E1AC8FA53D20808E775FF012ACB46F0', |
| 873 | 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "UNIQUE_C72E1EF93E1AC8FA53D20808E775FF012ACB46F0" UNIQUE ("REL_ID_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER");' |
| 874 | ); |
| 875 | |
| 876 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 877 | 'ENodeBFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 878 | 'FK_ENodeBFunction_REL_FK_managed-by-managedElement', |
| 879 | 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "FK_ENodeBFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;' |
| 880 | ); |
| 881 | |
| 882 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 883 | 'ENodeBFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 884 | 'UNIQUE_F33037EE8037D0606D15FFB45EE8A27FD6DE30EE', |
| 885 | 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "UNIQUE_F33037EE8037D0606D15FFB45EE8A27FD6DE30EE" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION");' |
| 886 | ); |
| 887 | |
| 888 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 889 | 'EUtranCell', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 890 | 'FK_EUtranCell_REL_FK_provided-by-enodebFunction', |
| 891 | 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "FK_EUtranCell_REL_FK_provided-by-enodebFunction" FOREIGN KEY ("REL_FK_provided-by-enodebFunction") REFERENCES ties_data."ENodeBFunction" (id) ON DELETE CASCADE;' |
| 892 | ); |
| 893 | |
| 894 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 895 | 'EUtranCell', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 896 | 'UNIQUE_EUtranCell_REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL', |
| 897 | 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "UNIQUE_EUtranCell_REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL" UNIQUE ("REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL");' |
| 898 | ); |
| 899 | |
| 900 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 901 | 'EUtranCell', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 902 | 'FK_EUtranCell_REL_FK_grouped-by-sector', |
| 903 | 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "FK_EUtranCell_REL_FK_grouped-by-sector" FOREIGN KEY ("REL_FK_grouped-by-sector") REFERENCES ties_data."Sector" (id) ON DELETE CASCADE;' |
| 904 | ); |
| 905 | |
| 906 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 907 | 'EUtranCell', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 908 | 'UNIQUE_EUtranCell_REL_ID_SECTOR_GROUPS_EUTRANCELL', |
| 909 | 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "UNIQUE_EUtranCell_REL_ID_SECTOR_GROUPS_EUTRANCELL" UNIQUE ("REL_ID_SECTOR_GROUPS_EUTRANCELL");' |
| 910 | ); |
| 911 | |
| 912 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 913 | 'GNBCUCPFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 914 | 'FK_GNBCUCPFunction_REL_FK_managed-by-managedElement', |
| 915 | 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "FK_GNBCUCPFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;' |
| 916 | ); |
| 917 | |
| 918 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 919 | 'GNBCUCPFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 920 | 'UNIQUE_249F73FF1F4316A56DEF4424FA43C2064FFBE4DD', |
| 921 | 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "UNIQUE_249F73FF1F4316A56DEF4424FA43C2064FFBE4DD" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION");' |
| 922 | ); |
| 923 | |
| 924 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 925 | 'GNBCUUPFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 926 | 'FK_GNBCUUPFunction_REL_FK_managed-by-managedElement', |
| 927 | 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "FK_GNBCUUPFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;' |
| 928 | ); |
| 929 | |
| 930 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 931 | 'GNBCUUPFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 932 | 'UNIQUE_BDB349CDF0C4055902881ECCB71F460AE1DD323E', |
| 933 | 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "UNIQUE_BDB349CDF0C4055902881ECCB71F460AE1DD323E" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION");' |
| 934 | ); |
| 935 | |
| 936 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 937 | 'GNBDUFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 938 | 'FK_GNBDUFunction_REL_FK_managed-by-managedElement', |
| 939 | 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "FK_GNBDUFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;' |
| 940 | ); |
| 941 | |
| 942 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 943 | 'GNBDUFunction', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 944 | 'UNIQUE_08DFEFAF56EDDE43CBDC336F459D28C6518D3E1D', |
| 945 | 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "UNIQUE_08DFEFAF56EDDE43CBDC336F459D28C6518D3E1D" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION");' |
| 946 | ); |
| 947 | |
| 948 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 949 | 'LTESectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 950 | 'FK_LTESectorCarrier_REL_FK_provided-by-enodebFunction', |
| 951 | 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "FK_LTESectorCarrier_REL_FK_provided-by-enodebFunction" FOREIGN KEY ("REL_FK_provided-by-enodebFunction") REFERENCES ties_data."ENodeBFunction" (id) ON DELETE CASCADE;' |
| 952 | ); |
| 953 | |
| 954 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 955 | 'LTESectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 956 | 'UNIQUE_B9770D6C26DDA0173DB9690F6E3B42C111AF26E9', |
| 957 | 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_B9770D6C26DDA0173DB9690F6E3B42C111AF26E9" UNIQUE ("REL_ID_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER");' |
| 958 | ); |
| 959 | |
| 960 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 961 | 'LTESectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 962 | 'FK_LTESectorCarrier_REL_FK_used-by-euTranCell', |
| 963 | 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "FK_LTESectorCarrier_REL_FK_used-by-euTranCell" FOREIGN KEY ("REL_FK_used-by-euTranCell") REFERENCES ties_data."EUtranCell" (id) ON DELETE CASCADE;' |
| 964 | ); |
| 965 | |
| 966 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 967 | 'LTESectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 968 | 'UNIQUE_LTESectorCarrier_REL_ID_EUTRANCELL_USES_LTESECTORCARRIER', |
| 969 | 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_LTESectorCarrier_REL_ID_EUTRANCELL_USES_LTESECTORCARRIER" UNIQUE ("REL_ID_EUTRANCELL_USES_LTESECTORCARRIER");' |
| 970 | ); |
| 971 | |
| 972 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 973 | 'LTESectorCarrier', |
| 974 | 'FK_LTESectorCarrier_REL_FK_used-antennaCapability', |
| 975 | 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "FK_LTESectorCarrier_REL_FK_used-antennaCapability" FOREIGN KEY ("REL_FK_used-antennaCapability") REFERENCES ties_data."AntennaCapability" (id) ON DELETE CASCADE;' |
| 976 | ); |
| 977 | |
| 978 | SELECT ties_data.create_constraint_if_not_exists( |
| 979 | 'LTESectorCarrier', |
| 980 | 'UNIQUE_5D5FEB6B4B09D5D42A589753C684994CD0B96E88', |
| 981 | 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_5D5FEB6B4B09D5D42A589753C684994CD0B96E88" UNIQUE ("REL_ID_LTESECTORCARRIER_USES_ANTENNACAPABILITY");' |
| 982 | ); |
| 983 | |
| 984 | SELECT ties_data.create_constraint_if_not_exists( |
| 985 | 'ManagedElement', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 986 | 'FK_ManagedElement_REL_FK_deployed-as-cloudifiedNF', |
| 987 | 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "FK_ManagedElement_REL_FK_deployed-as-cloudifiedNF" FOREIGN KEY ("REL_FK_deployed-as-cloudifiedNF") REFERENCES ties_data."CloudifiedNF" (id) ON DELETE CASCADE;' |
| 988 | ); |
| 989 | |
| 990 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 991 | 'ManagedElement', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 992 | 'UNIQUE_E7BC94037DB5B94B7E863A10BEA20C2D4C3C307C', |
| 993 | 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "UNIQUE_E7BC94037DB5B94B7E863A10BEA20C2D4C3C307C" UNIQUE ("REL_ID_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF");' |
| 994 | ); |
| 995 | |
| 996 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 997 | 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 998 | 'FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_aSide_NFDeployment', |
| 999 | 'ALTER TABLE ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ADD CONSTRAINT "FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;' |
| 1000 | ); |
| 1001 | |
| 1002 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1003 | 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1004 | 'FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_bSide_CloudNamespace', |
| 1005 | 'ALTER TABLE ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ADD CONSTRAINT "FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_bSide_CloudNamespace" FOREIGN KEY ("bSide_CloudNamespace") REFERENCES ties_data."CloudNamespace" (id) ON DELETE CASCADE;' |
| 1006 | ); |
| 1007 | |
| 1008 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1009 | 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1010 | 'FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_aSide_NFDeployment', |
| 1011 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;' |
| 1012 | ); |
| 1013 | |
| 1014 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1015 | 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1016 | 'FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_bSide_GNBCUCPFunction', |
| 1017 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_bSide_GNBCUCPFunction" FOREIGN KEY ("bSide_GNBCUCPFunction") REFERENCES ties_data."GNBCUCPFunction" (id) ON DELETE CASCADE;' |
| 1018 | ); |
| 1019 | |
| 1020 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1021 | 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1022 | 'FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_aSide_NFDeployment', |
| 1023 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;' |
| 1024 | ); |
| 1025 | |
| 1026 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1027 | 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1028 | 'FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_bSide_GNBCUUPFunction', |
| 1029 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_bSide_GNBCUUPFunction" FOREIGN KEY ("bSide_GNBCUUPFunction") REFERENCES ties_data."GNBCUUPFunction" (id) ON DELETE CASCADE;' |
| 1030 | ); |
| 1031 | |
| 1032 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1033 | 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1034 | 'FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_aSide_NFDeployment', |
| 1035 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;' |
| 1036 | ); |
| 1037 | |
| 1038 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1039 | 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1040 | 'FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_bSide_GNBDUFunction', |
| 1041 | 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_bSide_GNBDUFunction" FOREIGN KEY ("bSide_GNBDUFunction") REFERENCES ties_data."GNBDUFunction" (id) ON DELETE CASCADE;' |
| 1042 | ); |
| 1043 | |
| 1044 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1045 | 'NFDeployment', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1046 | 'FK_NFDeployment_REL_FK_serviced-managedElement', |
| 1047 | 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "FK_NFDeployment_REL_FK_serviced-managedElement" FOREIGN KEY ("REL_FK_serviced-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;' |
| 1048 | ); |
| 1049 | |
| 1050 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1051 | 'NFDeployment', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1052 | 'UNIQUE_NFDeployment_REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT', |
| 1053 | 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "UNIQUE_NFDeployment_REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" UNIQUE ("REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT");' |
| 1054 | ); |
| 1055 | |
| 1056 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1057 | 'NFDeployment', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1058 | 'FK_NFDeployment_REL_FK_comprised-by-cloudifiedNF', |
| 1059 | 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "FK_NFDeployment_REL_FK_comprised-by-cloudifiedNF" FOREIGN KEY ("REL_FK_comprised-by-cloudifiedNF") REFERENCES ties_data."CloudifiedNF" (id) ON DELETE CASCADE;' |
| 1060 | ); |
| 1061 | |
| 1062 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1063 | 'NFDeployment', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1064 | 'UNIQUE_NFDeployment_REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT', |
| 1065 | 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "UNIQUE_NFDeployment_REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" UNIQUE ("REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT");' |
| 1066 | ); |
| 1067 | |
| 1068 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1069 | 'NODECLUSTER_LOCATED_AT_CLOUDSITE', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1070 | 'FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_aSide_NodeCluster', |
| 1071 | 'ALTER TABLE ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ADD CONSTRAINT "FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_aSide_NodeCluster" FOREIGN KEY ("aSide_NodeCluster") REFERENCES ties_data."NodeCluster" (id) ON DELETE CASCADE;' |
| 1072 | ); |
| 1073 | |
| 1074 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1075 | 'NODECLUSTER_LOCATED_AT_CLOUDSITE', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1076 | 'FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_bSide_CloudSite', |
| 1077 | 'ALTER TABLE ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ADD CONSTRAINT "FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_bSide_CloudSite" FOREIGN KEY ("bSide_CloudSite") REFERENCES ties_data."CloudSite" (id) ON DELETE CASCADE;' |
| 1078 | ); |
| 1079 | |
| 1080 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1081 | 'NRCellCU', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1082 | 'FK_NRCellCU_REL_FK_provided-by-gnbcucpFunction', |
| 1083 | 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "FK_NRCellCU_REL_FK_provided-by-gnbcucpFunction" FOREIGN KEY ("REL_FK_provided-by-gnbcucpFunction") REFERENCES ties_data."GNBCUCPFunction" (id) ON DELETE CASCADE;' |
| 1084 | ); |
| 1085 | |
| 1086 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1087 | 'NRCellCU', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1088 | 'UNIQUE_NRCellCU_REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU', |
| 1089 | 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "UNIQUE_NRCellCU_REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" UNIQUE ("REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU");' |
| 1090 | ); |
| 1091 | |
| 1092 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1093 | 'NRCellDU', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1094 | 'FK_NRCellDU_REL_FK_provided-by-gnbduFunction', |
| 1095 | 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "FK_NRCellDU_REL_FK_provided-by-gnbduFunction" FOREIGN KEY ("REL_FK_provided-by-gnbduFunction") REFERENCES ties_data."GNBDUFunction" (id) ON DELETE CASCADE;' |
| 1096 | ); |
| 1097 | |
| 1098 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1099 | 'NRCellDU', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1100 | 'UNIQUE_NRCellDU_REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU', |
| 1101 | 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "UNIQUE_NRCellDU_REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU" UNIQUE ("REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU");' |
| 1102 | ); |
| 1103 | |
| 1104 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1105 | 'NRCellDU', |
| 1106 | 'FK_NRCellDU_REL_FK_grouped-by-sector', |
| 1107 | 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "FK_NRCellDU_REL_FK_grouped-by-sector" FOREIGN KEY ("REL_FK_grouped-by-sector") REFERENCES ties_data."Sector" (id) ON DELETE CASCADE;' |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1108 | ); |
| 1109 | |
| 1110 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1111 | 'NRCellDU', |
| 1112 | 'UNIQUE_NRCellDU_REL_ID_SECTOR_GROUPS_NRCELLDU', |
| 1113 | 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "UNIQUE_NRCellDU_REL_ID_SECTOR_GROUPS_NRCELLDU" UNIQUE ("REL_ID_SECTOR_GROUPS_NRCELLDU");' |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1114 | ); |
| 1115 | |
| 1116 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1117 | 'NRSectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1118 | 'FK_NRSectorCarrier_REL_FK_provided-by-gnbduFunction', |
| 1119 | 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "FK_NRSectorCarrier_REL_FK_provided-by-gnbduFunction" FOREIGN KEY ("REL_FK_provided-by-gnbduFunction") REFERENCES ties_data."GNBDUFunction" (id) ON DELETE CASCADE;' |
| 1120 | ); |
| 1121 | |
| 1122 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1123 | 'NRSectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1124 | 'UNIQUE_872BE05F1989443F2595D99A77BC03733B2D1E2F', |
| 1125 | 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_872BE05F1989443F2595D99A77BC03733B2D1E2F" UNIQUE ("REL_ID_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER");' |
| 1126 | ); |
| 1127 | |
| 1128 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1129 | 'NRSectorCarrier', |
| 1130 | 'FK_NRSectorCarrier_REL_FK_used-by-nrCellDu', |
| 1131 | 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "FK_NRSectorCarrier_REL_FK_used-by-nrCellDu" FOREIGN KEY ("REL_FK_used-by-nrCellDu") REFERENCES ties_data."NRCellDU" (id) ON DELETE CASCADE;' |
| 1132 | ); |
| 1133 | |
| 1134 | SELECT ties_data.create_constraint_if_not_exists( |
| 1135 | 'NRSectorCarrier', |
| 1136 | 'UNIQUE_NRSectorCarrier_REL_ID_NRCELLDU_USES_NRSECTORCARRIER', |
| 1137 | 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_NRSectorCarrier_REL_ID_NRCELLDU_USES_NRSECTORCARRIER" UNIQUE ("REL_ID_NRCELLDU_USES_NRSECTORCARRIER");' |
| 1138 | ); |
| 1139 | |
| 1140 | SELECT ties_data.create_constraint_if_not_exists( |
| 1141 | 'NRSectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1142 | 'FK_NRSectorCarrier_REL_FK_used-antennaCapability', |
| 1143 | 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "FK_NRSectorCarrier_REL_FK_used-antennaCapability" FOREIGN KEY ("REL_FK_used-antennaCapability") REFERENCES ties_data."AntennaCapability" (id) ON DELETE CASCADE;' |
| 1144 | ); |
| 1145 | |
| 1146 | SELECT ties_data.create_constraint_if_not_exists( |
JvD_Ericsson | 84d3ba8 | 2024-07-12 14:54:10 +0100 | [diff] [blame^] | 1147 | 'NRSectorCarrier', |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1148 | 'UNIQUE_EDF7D5C78EF6505848B1679B714D7831F5863991', |
| 1149 | 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_EDF7D5C78EF6505848B1679B714D7831F5863991" UNIQUE ("REL_ID_NRSECTORCARRIER_USES_ANTENNACAPABILITY");' |
| 1150 | ); |
| 1151 | |
JohnKeeney | f1e4460 | 2024-06-07 13:07:03 +0100 | [diff] [blame] | 1152 | |
| 1153 | COMMIT; |