DROP INDEX IF EXISTS idx_purchase_orders_team_scope;
DROP INDEX IF EXISTS idx_purchase_orders_team_category_id;

ALTER TABLE purchase_orders
    DROP CONSTRAINT IF EXISTS chk_purchase_orders_team;

ALTER TABLE purchase_orders
    DROP CONSTRAINT IF EXISTS fk_purchase_orders_team_category;

ALTER TABLE purchase_orders
    DROP COLUMN IF EXISTS team_category_id,
    DROP COLUMN IF EXISTS team_scope;
