Skip to content

Commit

Permalink
Merge branch 'master' into feat/add-profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr authored Nov 4, 2024
2 parents 33224ed + 9af25fe commit f2f69d5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addIndex('email_messages', {
name: 'email_messages_campaign_id_status_error_code',
fields: ['campaign_id', 'status', 'error_code'],
concurrently: true,
})
},

down: async (queryInterface, Sequelize) => {
await queryInterface.removeIndex('email_messages', 'email_messages_campaign_id_status_error_code')
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.removeIndex('email_messages', 'email_messages_campaign_id')
},

down: async (queryInterface, Sequelize) => {
await queryInterface.addIndex('email_messages', {
name: 'email_messages_campaign_id',
fields: ['campaign_id'],
concurrently: true,
})
}
};

0 comments on commit f2f69d5

Please sign in to comment.