Skip to content

Commit

Permalink
Update returns.versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks committed Feb 19, 2024
1 parent cf44039 commit 4f4d597
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ exports.up = function (knex) {
table.unique(['return_id', 'version_number'], { useConstraint: true })

// Legacy timestamps
// NOTE: They are not automatically set
table.timestamp('created_at').notNullable()
table.timestamp('updated_at')

// Constraints
table.unique(['return_id', 'version_number'], { useConstraint: true })
})
}

Expand Down

0 comments on commit 4f4d597

Please sign in to comment.