diff --git a/migrations/1727809177709_add-created.cjs b/migrations/1727809177709_add-created.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ceafc9a8976ed65f709d7b78e17b3998a166327f --- /dev/null +++ b/migrations/1727809177709_add-created.cjs @@ -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') +}