machinomy
Version:
Micropayments powered by Ethereum
30 lines • 856 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function up(db, callback) {
const createTableOptions = {
columns: {
token: 'string',
kind: 'string',
channelId: {
type: 'string',
notNull: true,
foreignKey: {
name: 'tokens_channel_id_fk',
table: 'channel',
mapping: 'channelId',
rules: {
onDelete: 'CASCADE'
}
}
}
},
ifNotExists: true
};
db.createTable('token', createTableOptions, callback);
}
exports.up = up;
function down(db, callback) {
db.dropTable('token', callback);
}
exports.down = down;
//# sourceMappingURL=20180115082512-create-token.js.map