Merge "Upgrade drools cl app image" into elalto
[oom.git] / kubernetes / clamp / charts / mariadb / resources / config / mariadb / docker-entrypoint-initdb.d / drop / clds-drop-db-objects.sql
1 /* Copyright © 2017 AT&T, Amdocs, Bell Canada
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *       http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #
17 # Drop CLDS database objects (tables, etc.)
18 #
19
20
21 ALTER TABLE template
22     DROP FOREIGN KEY template_image_id_fkey01;
23 ALTER TABLE template
24     DROP FOREIGN KEY template_bpmn_id_fkey01;
25 ALTER TABLE template
26     DROP FOREIGN KEY template_doc_id_fkey01;
27
28 ALTER TABLE model
29     DROP FOREIGN KEY template_id_fkey01;
30 ALTER TABLE model
31     DROP FOREIGN KEY model_prop_id_fkey01;
32 ALTER TABLE model
33     DROP FOREIGN KEY model_blueprint_id_fkey01;
34 ALTER TABLE model
35     DROP FOREIGN KEY event_id_fkey01;
36
37 DROP TABLE clds_service_cache;
38
39 DROP TABLE model_instance;
40 DROP TABLE model_blueprint;
41 DROP TABLE model_properties;
42 DROP TABLE event;
43 DROP TABLE model;
44
45 DROP TABLE template_doc;
46 DROP TABLE template_image;
47 DROP TABLE template_bpmn;
48 DROP TABLE template;
49
50 DROP TABLE dictionary_elements;
51 DROP TABLE dictionary;
52 DROP TABLE tosca_model_revision;
53 DROP TABLE tosca_model;
54