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:
parent
b8abface20
commit
b85cfc7c1e
15
migrations/1727809177709_add-created.cjs
Normal file
15
migrations/1727809177709_add-created.cjs
Normal 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')
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user