protected function hasOldTables() {
        if(!file_exists(ASSETS_PATH.'/.codeBankMigrated')) {
            $tables=DB::tableList();
            if(array_key_exists('snippits', $tables) && array_key_exists('snippit_search', $tables)) {
                return true;
            }else {
                touch(ASSETS_PATH.'/.codeBankMigrated');
            }
        }
        
        return false;
    }
protected function hasOldTables() {
        if(!file_exists(ASSETS_PATH.'/.codeBankMigrated')) {
            $tables=DB::tableList();
            if(array_key_exists('snippits', $tables) && array_key_exists('snippit_search', $tables)) {
                return true;
            }else {
                touch(ASSETS_PATH.'/.codeBankMigrated');
            }
        }
        
        return false;
    }
protected function hasOldTables ( ) { if ( ! file_exists ( ASSETS_PATH . '/.codeBankMigrated' ) ) { $ tables = DB :: tableList ( ) ; if ( array_key_exists ( 'snippits' , $ tables ) && array_key_exists ( 'snippit_search' , $ tables ) ) { return true ; } else { touch ( ASSETS_PATH . '/.codeBankMigrated' ) ; } } return false ; }
Tests to see if the old tables exist
@return {bool} Returns boolean true if the old tables are detected and the migration file is not detected
Tests to see if the old tables exist