import { Base , CallbackFunction } from 'db-migrate-base' ; import bigNumberColumn from './util/bigNumberColumn' ; export function up ( db , callback ) { const createTableOptions = { columns : { channelId : { type : 'string' , notNull : true } , kind : 'string' , token : { type : 'string' , notNull : true , unique : true } , sender : 'string' , receiver : 'string' , price : bigNumberColumn , value : bigNumberColumn , channelValue : bigNumberColumn , v : 'int' , r : 'string' , s : 'string' , meta : 'string' , contractAddress : 'string' } , ifNotExists : true } ; db . createTable ( 'payment' , createTableOptions , callback ) ; } export function down ( db , callback ) { db . dropTable ( 'payment' , callback ) ; }