From 6de5ca94a0816c42ad6278712203704bd0f4abf5 Mon Sep 17 00:00:00 2001 From: Richard Pentecost Date: Wed, 20 Jul 2022 15:25:34 +0100 Subject: [PATCH] alter migration to set name of index --- .../20220718113815-workerAuditTableAddIndexForUsername.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"', ); }, };