DROP TABLE IF EXISTS staff_standalone_employee_access; DROP INDEX IF EXISTS staff_payroll_ledger_external_key_idx; ALTER TABLE staff_payroll_ledger DROP COLUMN IF EXISTS external_key;