DROP INDEX IF EXISTS idx_departments_is_active;
DROP INDEX IF EXISTS idx_departments_code_unique;

ALTER TABLE departments
    DROP COLUMN IF EXISTS updated_at,
    DROP COLUMN IF EXISTS transfers_enabled,
    DROP COLUMN IF EXISTS visibility,
    DROP COLUMN IF EXISTS is_active,
    DROP COLUMN IF EXISTS department_email,
    DROP COLUMN IF EXISTS department_head,
    DROP COLUMN IF EXISTS description,
    DROP COLUMN IF EXISTS code;
