export const shorthands = undefined; /** * @param pgm {import('node-pg-migrate').MigrationBuilder} * @param run {() => void | undefined} * @returns {Promise | void} */ export function up(pgm) { pgm.createTable('captchas', { id: 'id', hash: {type: 'char(32)'}, solution: {type: 'char(6)'} }) } /** * @param pgm {import('node-pg-migrate').MigrationBuilder} * @param run {() => void | undefined} * @returns {Promise | void} */ export function down(pgm) { pgm.dropTable('captchas') }