UNPKG

machinomy

Version:

Micropayments powered by Ethereum

28 lines 847 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const bigNumberColumn_1 = require("./util/bigNumberColumn"); function up(db, callback) { const createTableOptions = { columns: { channelId: { type: 'string', primaryKey: true }, kind: 'string', sender: 'string', receiver: 'string', value: bigNumberColumn_1.default, spent: bigNumberColumn_1.default, state: 'smallint', contractAddress: 'string' }, ifNotExists: true }; db.createTable('channel', createTableOptions, callback); } exports.up = up; function down(db, callback) { db.dropTable('channel', callback); } exports.down = down; //# sourceMappingURL=20180115082440-create-channel.js.map