ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame] | 1 | # |
| 2 | # Drop CLDS database objects (tables, etc.) |
| 3 | # |
| 4 | # |
| 5 | |
| 6 | |
| 7 | ALTER TABLE template |
| 8 | DROP FOREIGN KEY template_image_id_fkey01; |
| 9 | ALTER TABLE template |
| 10 | DROP FOREIGN KEY template_bpmn_id_fkey01; |
| 11 | ALTER TABLE template |
| 12 | DROP FOREIGN KEY template_doc_id_fkey01; |
| 13 | |
| 14 | ALTER TABLE model |
| 15 | DROP FOREIGN KEY template_id_fkey01; |
| 16 | ALTER TABLE model |
| 17 | DROP FOREIGN KEY model_prop_id_fkey01; |
| 18 | ALTER TABLE model |
| 19 | DROP FOREIGN KEY model_blueprint_id_fkey01; |
| 20 | ALTER TABLE model |
| 21 | DROP FOREIGN KEY event_id_fkey01; |
| 22 | |
| 23 | DROP TABLE model_instance; |
| 24 | DROP TABLE model_blueprint; |
| 25 | DROP TABLE model_properties; |
| 26 | DROP TABLE event; |
| 27 | DROP TABLE model; |
| 28 | |
| 29 | DROP TABLE template_doc; |
| 30 | DROP TABLE template_image; |
| 31 | DROP TABLE template_bpmn; |
| 32 | DROP TABLE template; |