You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//find JSONFiles not associated with a database_member record
94
111
" (SELECT count(rowid) FROM " + JBrowseSchema.NAME + "." + JBrowseSchema.TABLE_DATABASE_MEMBERS + " d WHERE d.jsonfile = " + JBrowseSchema.TABLE_JSONFILES + ".objectid) = 0 AND " +
95
-
//TODO: ultimately completely remove these
96
-
//or library reference sequences
97
-
" (SELECT count(rowid) FROM sequenceanalysis.reference_library_members d WHERE d.ref_nt_id = " + JBrowseSchema.TABLE_JSONFILES + ".sequenceid) = 0 AND " +
98
112
//or library tracks
99
113
" (SELECT count(rowid) FROM sequenceanalysis.reference_library_tracks d WHERE d.rowid = " + JBrowseSchema.TABLE_JSONFILES + ".trackid) = 0 AND " +
100
114
//or outputfiles
@@ -105,11 +119,8 @@ public void run(Logger log)
105
119
log.info("deleted " + deleted2 + " JSON files because they are not used by any sessions");
106
120
107
121
//second pass at orphan JSONFiles. Note: these might be referenced by a database_member record still.
" (" + JBrowseSchema.TABLE_JSONFILES + ".sequenceid IS NOT NULL AND (SELECT count(rowid) FROM sequenceanalysis.ref_nt_sequences d WHERE d.rowid = " + JBrowseSchema.TABLE_JSONFILES + ".sequenceid) = 0) OR " +
113
124
//library tracks
114
125
" ( " + JBrowseSchema.TABLE_JSONFILES + ".trackid IS NOT NULL AND (SELECT count(rowid) FROM sequenceanalysis.reference_library_tracks d WHERE d.rowid = " + JBrowseSchema.TABLE_JSONFILES + ".trackid) = 0) OR " +
115
126
//outputfiles
@@ -119,7 +130,6 @@ public void run(Logger log)
119
130
if (!toDelete.isEmpty())
120
131
{
121
132
log.info("deleting " + toDelete.size() + " JSON files because they reference non-existent tracks, sequences or outputfiles");
0 commit comments