unsuccessful(unstable and dirty) proxy solution
This commit is contained in:
23
migrations/1745667860234_captchas.js
Normal file
23
migrations/1745667860234_captchas.js
Normal file
@@ -0,0 +1,23 @@
|
||||
export const shorthands = undefined;
|
||||
|
||||
/**
|
||||
* @param pgm {import('node-pg-migrate').MigrationBuilder}
|
||||
* @param run {() => void | undefined}
|
||||
* @returns {Promise<void> | 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> | void}
|
||||
*/
|
||||
export function down(pgm) {
|
||||
pgm.dropTable('captchas')
|
||||
}
|
||||
Reference in New Issue
Block a user