From b546f49b66a3314e5dbd3b34128d2914937972ab Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 27 Jan 2021 09:40:19 +0100 Subject: [PATCH] [Fix] Added missing drop scripts for newest postgresql version --- .../resources/archive_db_schema_0.3.1_drop.sql | 5 +++++ .../resources/strolch_db_schema_0.9.2_drop.sql | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 li.strolch.persistence.postgresql/src/main/resources/archive_db_schema_0.3.1_drop.sql create mode 100644 li.strolch.persistence.postgresql/src/main/resources/strolch_db_schema_0.9.2_drop.sql diff --git a/li.strolch.persistence.postgresql/src/main/resources/archive_db_schema_0.3.1_drop.sql b/li.strolch.persistence.postgresql/src/main/resources/archive_db_schema_0.3.1_drop.sql new file mode 100644 index 000000000..ec46e6b33 --- /dev/null +++ b/li.strolch.persistence.postgresql/src/main/resources/archive_db_schema_0.3.1_drop.sql @@ -0,0 +1,5 @@ + +DROP TABLE IF EXISTS archive_resources; +DROP TABLE IF EXISTS archive_orders; +DROP TABLE IF EXISTS archive_activities; +DROP INDEX IF EXISTS ids_archive_orders_date; \ No newline at end of file diff --git a/li.strolch.persistence.postgresql/src/main/resources/strolch_db_schema_0.9.2_drop.sql b/li.strolch.persistence.postgresql/src/main/resources/strolch_db_schema_0.9.2_drop.sql new file mode 100644 index 000000000..651b8512a --- /dev/null +++ b/li.strolch.persistence.postgresql/src/main/resources/strolch_db_schema_0.9.2_drop.sql @@ -0,0 +1,18 @@ + +DROP TABLE IF EXISTS resources; +DROP TABLE IF EXISTS orders; +DROP TABLE IF EXISTS activities; + +DROP TABLE IF EXISTS audits; + +DROP TABLE IF EXISTS operations_log; +DROP TABLE IF EXISTS operations_log_values; + +DROP TABLE IF EXISTS db_version; + +DROP TYPE IF EXISTS order_state; +DROP TYPE IF EXISTS access_type; +DROP TYPE IF EXISTS log_severity_type; +DROP TYPE IF EXISTS log_state_type; + +DROP INDEX IF EXISTS ids_orders_date;