From b90534babba051a052ab0ebda76334964f698891 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Wed, 6 Sep 2017 16:55:05 +0100 Subject: [PATCH] Fixed table clearup sql for migration --- share/ddl/PostgreSQL/upgrade/5-6/003-remove-temps.sql | 8 ++++---- share/ddl/SQLite/upgrade/5-6/003-remove-temps.sql | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/share/ddl/PostgreSQL/upgrade/5-6/003-remove-temps.sql b/share/ddl/PostgreSQL/upgrade/5-6/003-remove-temps.sql index 29f587b..f86be1c 100644 --- a/share/ddl/PostgreSQL/upgrade/5-6/003-remove-temps.sql +++ b/share/ddl/PostgreSQL/upgrade/5-6/003-remove-temps.sql @@ -7,14 +7,14 @@ DROP INDEX transactions_temp_idx_seller_id; DROP INDEX session_tokens_temp_idx_user_id; DROP INDEX feedback_temp_idx_user_id; -DROP TABLE customers_temp; -DROP TABLE organisations_temp; DROP TABLE transactions_temp; DROP TABLE session_tokens_temp; DROP TABLE feedback_temp; -DROP TABLE users_temp; -DROP TABLE pending_organisations; DROP TABLE pending_transactions; DROP TABLE administrators; +DROP TABLE pending_organisations; +DROP TABLE users_temp; +DROP TABLE customers_temp; +DROP TABLE organisations_temp; COMMIT; diff --git a/share/ddl/SQLite/upgrade/5-6/003-remove-temps.sql b/share/ddl/SQLite/upgrade/5-6/003-remove-temps.sql index 8784b75..0beb101 100644 --- a/share/ddl/SQLite/upgrade/5-6/003-remove-temps.sql +++ b/share/ddl/SQLite/upgrade/5-6/003-remove-temps.sql @@ -6,6 +6,8 @@ DROP TABLE customers_temp; DROP TABLE organisations_temp; DROP TABLE transactions_temp; DROP TABLE users_temp; +DROP TABLE feedback_temp; +DROP TABLE session_tokens_temp; DROP TABLE pending_organisations; DROP TABLE pending_transactions; DROP TABLE administrators;