Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Drop unique requirement for template_id column in letter_versions table #183

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ module.exports = {

// Add indexes
table.index(['campaign_id'])

// Add unique indexes
table.unique(['template_id'])
table.index(['template_id'])
})
},

Expand All @@ -35,9 +33,7 @@ module.exports = {

// Drop indexes
table.dropIndex(['campaign_id'])

// Drop unique indexes
table.dropUnique(['template_id'])
table.dropIndex(['template_id'])
})

await knex.schema.alterTable(tableName, function (table) {
Expand Down