DROP INDEX idx_legacy_codes_status;
ALTER TABLE legacy_code_batches RENAME TO code_batches;
ALTER TABLE legacy_codes RENAME TO codes;
CREATE INDEX idx_codes_status ON codes (status);
