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