Skip to content

Commit

Permalink
Update timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozzey committed Aug 2, 2023
1 parent 8846420 commit 94a520b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions db/migrations/20230802134153_create_returns_returns.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ exports.up = async function (knex) {
table.string('status')
table.string('source')
table.jsonb('metadata')
table.timestamp('created_at', { useTz: false }).notNullable().defaultTo(knex.fn.now())
table.timestamp('updated_at', { useTz: false }).notNullable().defaultTo(knex.fn.now())
table.date('received_date')
table.string('return_requirement')
table.date('due_date')
table.boolean('under_query')
table.string('under_query_comment')
table.boolean('is_test')
table.uuid('return_cycle_id')

// Legacy timestamps
table.timestamp('created_at', { useTz: false }).notNullable().defaultTo(knex.fn.now())
table.timestamp('updated_at', { useTz: false }).notNullable().defaultTo(knex.fn.now())
})
}

Expand Down

0 comments on commit 94a520b

Please sign in to comment.