Skip to content

Commit 5562fa1

Browse files
committed
Find container field keys in nearly every table
1 parent 7d2aeaf commit 5562fa1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

protein/src/org/labkey/protein/ProteinModule.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,17 @@ public void beforeSchema()
145145
{
146146
return switch (sourceTable.getName())
147147
{
148-
case "AnnotationTypes", "AnnotInsertions", "FastaFiles", "FastaLoads", "GoGraphPath", "GoTerm", "GoTerm2Term", "GoTermDefinition", "GoTermSynonym", "Identifiers", "IdentTypes", "InfoSources", "SprotOrgMap" -> SITE_WIDE_TABLE;
149-
default -> super.getContainerFieldKey(sourceTable);
148+
case "CustomAnnotation", "CustomAnnotationSet" -> super.getContainerFieldKey(sourceTable);
149+
default -> SITE_WIDE_TABLE;
150150
};
151151
}
152152

153153
@Override
154154
public void afterSchema()
155155
{
156156
new SqlExecutor(getSchema()).execute("ALTER TABLE prot.Organisms ADD CONSTRAINT FK_ProtOrganisms_ProtIdentifiers FOREIGN KEY (IdentId) REFERENCES prot.Identifiers (IdentId)");
157-
GoLoader.dropGoIndexes(); }
157+
GoLoader.dropGoIndexes();
158+
}
158159
});
159160
}
160161

0 commit comments

Comments
 (0)