Skip to content

Commit

Permalink
Add names for new indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
paularintaharri committed Apr 9, 2024
1 parent 81cdee6 commit accd0ae
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions migrations/1712659673740_add-user-guid-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ exports.up = (pgm) => {
// Adding indexes
pgm.createIndex('completed_agegroup_entries', 'user_guid', {
ifNotExists: true,
name: completed_agegroup_entries_user_guid_idx,
})
pgm.createIndex('favourite_tasks', 'user_guid', {
ifNotExists: true,
name: favourite_tasks_user_guid_idx,
})
pgm.createIndex('notifications', 'user_guid', {
ifNotExists: true,
name: notifications_user_guid_idx,
})
pgm.createIndex('task_entries', 'user_guid', {
ifNotExists: true,
name: task_entries_user_guid_idx,
})
pgm.createIndex('task_group_entries', 'user_guid', {
ifNotExists: true,
name: task_group_entries_user_guid_idx,
})
pgm.createIndex('favourite_tasks', 'user_guid', { ifNotExists: true })
pgm.createIndex('notifications', 'user_guid', { ifNotExists: true })
pgm.createIndex('task_entries', 'user_guid', { ifNotExists: true })
pgm.createIndex('task_group_entries', 'user_guid', { ifNotExists: true })
}

exports.down = (pgm) => {}

0 comments on commit accd0ae

Please sign in to comment.