Skip to content

Commit

Permalink
add created timestamp to tokens table (#10573)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s authored Oct 12, 2024
1 parent b8abfac commit b85cfc7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions migrations/1727809177709_add-created.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
exports.shorthands = undefined

exports.up = pgm => {
pgm.addColumn('github_user_tokens', {
created: {
type: 'TIMESTAMP',
notNull: true,
default: pgm.func('CURRENT_TIMESTAMP'),
},
})
}

exports.down = pgm => {
pgm.dropColumn('github_user_tokens', 'created')
}

0 comments on commit b85cfc7

Please sign in to comment.