@bsv/overlay
Version:
BSV Blockchain Overlay Services Engine
13 lines • 464 B
JavaScript
export async function up(knex) {
// Add new column for blockHeight associated with outputs
await knex.schema.table('outputs', table => {
table.integer('blockHeight').unsigned().nullable();
});
}
export 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