Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
* limitations under the License.
*/

-- @SkipScriptIfSchemaExists This script moved from the MS2 module to the Protein module in 2024. If the schema exists,
-- we want this script to be recorded as "run", but don't want any of the statements executed.
-- Note: This script was not consolidated in Jan, 2025 because we want prot-23.000-23.001.sql to execute on existing servers.
-- TODO: Remove the above annotation in Jan, 2026 during script consolidation

CREATE SCHEMA prot;

/****** AnnotInsertions */
Expand Down Expand Up @@ -625,3 +620,17 @@ CREATE TABLE prot.CustomAnnotation
);

CREATE INDEX IX_CustomAnnotation_CustomAnnotationSetId ON prot.CustomAnnotation(CustomAnnotationSetId);

/* 23.xxx SQL scripts */

-- These PostgreSQL-only special indexes use 'varchar_pattern_ops' operator, which are used when queries have pattern expressions
-- using LIKE, however, they only work when using prefixes.
-- PostgreSQL doc :https://www.postgresql.org/docs/current/indexes-opclass.html

CREATE INDEX IF NOT EXISTS IX_ProtSequences_Identifier_VarcharPatternOps ON prot.Identifiers (lower(Identifier) varchar_pattern_ops);

CREATE INDEX IF NOT EXISTS IX_ProtAnnotations_AnnotVal_VarcharPatternOps ON prot.Annotations (lower(AnnotVal) varchar_pattern_ops);

CREATE INDEX IF NOT EXISTS IX_ProtFastaSequences_LookupString_VarcharPatternOps ON prot.FastaSequences (lower(LookupString) varchar_pattern_ops);

CREATE INDEX IF NOT EXISTS IX_ProtIdentifiers_BestName_VarcharPatternOps ON prot.Sequences (lower(BestName) varchar_pattern_ops);

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

-- @SkipScriptIfSchemaExists This script moved from the MS2 module to the Protein module in 2024. If the schema exists,
-- we want this script to be recorded as "run", but don't want any of the statements executed.
-- TODO: Remove the above annotation in Jan, 2026 during script consolidation

CREATE SCHEMA prot;
GO

Expand Down

This file was deleted.