@bsv/overlay
Version:
BSV Blockchain Overlay Services Engine
17 lines • 565 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.up = up;
exports.down = down;
async function up(knex) {
// Add new column for blockHeight associated with outputs
await knex.schema.table('outputs', table => {
table.integer('blockHeight').unsigned().nullable();
});
}
async function down(knex) {
// Remove the blockHeight column (rollback operation)
await knex.schema.table('outputs', table => {
table.dropColumn('blockHeight');
});
}
//# sourceMappingURL=2024-07-10-001-block-height.js.map