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

Commit

Permalink
Merge pull request #183 from ProgramEquity/non-unique-template-id
Browse files Browse the repository at this point in the history
Drop unique requirement for `template_id` column in `letter_versions` table
  • Loading branch information
JamesMGreene committed Feb 1, 2022
2 parents 2e2de38 + 6feebd0 commit 7236a77
Showing 1 changed file with 2 additions and 6 deletions.
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

0 comments on commit 7236a77

Please sign in to comment.