diff --git a/migrations/20220718113815-workerAuditTableAddIndexForUsername.js b/migrations/20220718113815-workerAuditTableAddIndexForUsername.js index 0c4235946c..e3a300816b 100644 --- a/migrations/20220718113815-workerAuditTableAddIndexForUsername.js +++ b/migrations/20220718113815-workerAuditTableAddIndexForUsername.js @@ -10,6 +10,9 @@ module.exports = { { fields: ['Username'], }, + { + name: 'worker_audit__username_idx', + }, ); }, @@ -19,7 +22,7 @@ module.exports = { tableName: 'WorkerAudit', schema: 'cqc', }, - 'cqc."worker_audit__username"', + 'cqc."worker_audit__username_idx"', ); }, };