import { Knex } from 'knex' ; import Client_Oracledb from 'knex/lib/dialects/oracledb' ; export async function up ( knex ) { if ( knex . client instanceof Client_Oracledb ) { return ; } await knex . schema . alterTable ( 'directus_files' , ( table ) => { table . bigInteger ( 'filesize' ) . nullable ( ) . defaultTo ( null ) . alter ( ) ; } ) ; } export async function down ( knex ) { if ( knex . client instanceof Client_Oracledb ) { return ; } await knex . schema . alterTable ( 'directus_files' , ( table ) => { table . integer ( 'filesize' ) . nullable ( ) . defaultTo ( null ) . alter ( ) ; } ) ; }