40da01adf88860b52d384191692a0b0ce8662439 braney Wed Feb 27 16:41:55 2019 -0800 oops... make sure table doesn't exist before assuming it doesn't exist #22885 diff --git src/hg/hgTables/schema.c src/hg/hgTables/schema.c index 75e2ab5..5f700c7 100644 --- src/hg/hgTables/schema.c +++ src/hg/hgTables/schema.c @@ -669,31 +669,31 @@ boolean isTabix = FALSE; if (isHubTrack(table)) showSchemaHub(db, table); else if (isBigBed(database, table, curTrack, ctLookupName)) showSchemaBigBed(table, tdb); else if (isLongTabixTable(table)) showSchemaLongTabix(table, tdb); else if (isBamTable(table)) showSchemaBam(table, tdb); else if (isVcfTable(table, &isTabix)) showSchemaVcf(table, tdb, isTabix); else if (isCustomTrack(table)) showSchemaCt(db, table); else if (sameWord(table, WIKI_TRACK_TABLE)) showSchemaWiki(tdb, table); -else if (isBigWig(database, table, curTrack, ctLookupName)) +else if (isBigWig(database, table, curTrack, ctLookupName) && !hTableExists(db, table)) showSchemaBigWigNoTable(db, table, tdb); else showSchemaDb(db, tdb, table); } void doTableSchema(char *db, char *table, struct sqlConnection *conn) /* Show schema around table (which is not described by curTrack). */ { struct trackDb *tdb = NULL; char parseBuf[256]; dbOverrideFromTable(parseBuf, &db, &table); htmlOpen("Schema for %s", table); tdb = hTrackDbForTrack(database, table); showSchema(db, tdb, table); htmlClose();