-- Remove old order tables and functions
DROP FUNCTION IF EXISTS function_copy_order CASCADE;
DROP FUNCTION IF EXISTS function_copy_order_field CASCADE;
DROP FUNCTION IF EXISTS function_copy_order CASCADE;

DROP TABLE IF EXISTS "order-rows_details" CASCADE;
DROP TABLE IF EXISTS "order-fields" CASCADE;
DROP TABLE IF EXISTS "order-orders" CASCADE;
DROP TABLE IF EXISTS "order-orders_fields" CASCADE;
DROP TABLE IF EXISTS "order-row_fields" CASCADE;
DROP TABLE IF EXISTS "order-rows" CASCADE;
