diff --git a/db/seeds/16-return-cycles.seed.js b/db/seeds/16-return-cycles.seed.js index faad5c0254..ddac1b6397 100644 --- a/db/seeds/16-return-cycles.seed.js +++ b/db/seeds/16-return-cycles.seed.js @@ -13,6 +13,12 @@ async function seed () { async function _upsert (cycle) { return ReturnCycleModel.query() .insert({ ...cycle, createdAt: timestampForPostgres(), updatedAt: timestampForPostgres() }) + .onConflict(['startDate', 'endDate', 'summer']) + .merge([ + 'dueDate', + 'submittedInWrls', + 'updatedAt' + ]) } module.exports = {