import { Knex } from 'knex' ; import { DBVersion } from '../../types/SQLTableTypes' ; const upg7to8 = async ( db ) => { await db . schema . alterTable ( 'rooms' , ( table ) => { table . dropColumn ( 'avatar' ) ; } ) ; await db < DBVersion > ( 'dbVersion' ) . update ( { dbVersion : 8 } ) ; } ; export default upg7to8 ;