This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/share/ddl/PostgreSQL/upgrade/5-6/003-remove-temps.sql
2017-09-06 16:55:05 +01:00

20 lines
503 B
PL/PgSQL

-- Remove temporary tables created during migration
BEGIN;
DROP INDEX transactions_temp_idx_buyer_id;
DROP INDEX transactions_temp_idx_seller_id;
DROP INDEX session_tokens_temp_idx_user_id;
DROP INDEX feedback_temp_idx_user_id;
DROP TABLE transactions_temp;
DROP TABLE session_tokens_temp;
DROP TABLE feedback_temp;
DROP TABLE pending_transactions;
DROP TABLE administrators;
DROP TABLE pending_organisations;
DROP TABLE users_temp;
DROP TABLE customers_temp;
DROP TABLE organisations_temp;
COMMIT;