Skip to content

Commit

Permalink
Fix db index naming to migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
paularintaharri committed Apr 9, 2024
1 parent fb86fe7 commit ac33ab0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions migrations/1712659673740_add-user-guid-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ exports.up = (pgm) => {
// Adding indexes
pgm.createIndex('completed_agegroup_entries', 'user_guid', {
ifNotExists: true,
name: completed_agegroup_entries_user_guid_idx,
name: 'completed_agegroup_entries_user_guid_idx',
})
pgm.createIndex('favourite_tasks', 'user_guid', {
ifNotExists: true,
name: favourite_tasks_user_guid_idx,
name: 'favourite_tasks_user_guid_idx',
})
pgm.createIndex('notifications', 'user_guid', {
ifNotExists: true,
name: notifications_user_guid_idx,
name: 'notifications_user_guid_idx',
})
pgm.createIndex('task_entries', 'user_guid', {
ifNotExists: true,
name: task_entries_user_guid_idx,
name: 'task_entries_user_guid_idx',
})
pgm.createIndex('task_group_entries', 'user_guid', {
ifNotExists: true,
name: task_group_entries_user_guid_idx,
name: 'task_group_entries_user_guid_idx',
})
}

Expand Down

0 comments on commit ac33ab0

Please sign in to comment.