mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 08:34:40 +08:00
* 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
16 lines
348 B
JavaScript
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'
|
|
});
|
|
}
|