Files
stacks-blockchain-api/migrations/1673632140730_pox_state_fix.js
Matthew Little d3fd685659 fix: use pg bigint for pox_v1_unlock_height column (#1521)
* fix: use pg bigint for `pox_v1_unlock_height` column

* chore: pg down migration must be manually specified for alterColumn type

* fix: `pox_v1_unlock_height` returns as string-quoted integer
2023-01-13 20:38:08 +01:00

16 lines
348 B
JavaScript

/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
exports.up = pgm => {
pgm.alterColumn('pox_state', 'pox_v1_unlock_height', {
type: 'bigint'
});
}
/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
exports.down = pgm => {
pgm.alterColumn('pox_state', 'pox_v1_unlock_height', {
type: 'integer'
});
}