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

16 lines
292 B
JavaScript

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