-- Rollback: Remove added columns from departments
ALTER TABLE departments DROP COLUMN IF EXISTS code;
ALTER TABLE departments DROP COLUMN IF EXISTS description;
ALTER TABLE departments DROP COLUMN IF EXISTS department_head;
ALTER TABLE departments DROP COLUMN IF EXISTS department_email;
ALTER TABLE departments DROP COLUMN IF EXISTS visibility;
ALTER TABLE departments DROP COLUMN IF EXISTS transfers_enabled;
ALTER TABLE departments DROP COLUMN IF EXISTS updated_at;

DROP INDEX IF EXISTS idx_departments_code;
DROP INDEX IF EXISTS idx_departments_is_active;
