import * as Knex from 'knex' ; const COLUMNS = [ 'participants' ] ; export async function up ( knex ) { await knex . schema . alterTable ( 'channels' , function ( t ) { t . index ( COLUMNS ) ; } ) ; } export async function down ( knex ) { await knex . schema . alterTable ( 'channels' , function ( t ) { t . dropIndex ( COLUMNS ) ; } ) ; }