import bigNumberColumn from './util/bigNumberColumn' ; import { Base , CallbackFunction } from 'db-migrate-base' ; export async function up ( db , callback ) { const createTableOptions = { columns : { channelId : { type : 'string' , primaryKey : true } , kind : 'string' , sender : 'string' , receiver : 'string' , value : bigNumberColumn , spent : bigNumberColumn , state : 'smallint' , contractAddress : 'string' } , ifNotExists : true } ; db . createTable ( 'channel' , createTableOptions , callback ) ; } export function down ( db , callback ) { db . dropTable ( 'channel' , callback ) ; }