1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

add created timestamp to tokens table (#10573)

This commit is contained in:
chris48s 2024-10-12 09:07:10 +01:00 committed by GitHub
parent b8abface20
commit b85cfc7c1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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')
}