-- Remove location hierarchy (parent_id). Plants and warehouses are flat locations.

ALTER TABLE locations DROP CONSTRAINT IF EXISTS locations_parent_id_fkey;
DROP INDEX IF EXISTS idx_locations_parent_id;
ALTER TABLE locations DROP COLUMN IF EXISTS parent_id;
