UNPKG

@bsv/overlay

Version:
41 lines 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.up = up; exports.down = down; async function up(knex) { const client = (knex.client.config.client || '').toLowerCase(); if (client.startsWith('mysql')) { await knex.schema.alterTable('outputs', table => { table.specificType('outputScript', 'LONGBLOB').alter(); }); } else if (client === 'sqlite3') { await knex.schema.alterTable('outputs', table => { table.binary('outputScript').alter(); }); } if (client.startsWith('mysql')) { await knex.schema.alterTable('transactions', table => { table.specificType('beef', 'LONGBLOB').alter(); }); } else if (client === 'sqlite3') { await knex.schema.alterTable('transactions', table => { table.binary('beef').alter(); }); } } async function down(knex) { const client = (knex.client.config.client || '').toLowerCase(); if (client.startsWith('mysql') || client === 'sqlite3') { await knex.schema.alterTable('outputs', table => { table.binary('outputScript').alter(); }); } if (client.startsWith('mysql') || client === 'sqlite3') { await knex.schema.alterTable('transactions', table => { table.binary('beef').alter(); }); } } //# sourceMappingURL=2025-05-28-001-enlarge.js.map