diff --git a/api-src/org/labkey/api/targetedms/IModification.java b/api-src/org/labkey/api/targetedms/IModification.java index 5d4e39da5..9befe42a7 100644 --- a/api-src/org/labkey/api/targetedms/IModification.java +++ b/api-src/org/labkey/api/targetedms/IModification.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms; public interface IModification diff --git a/api-src/org/labkey/api/targetedms/ISampleFile.java b/api-src/org/labkey/api/targetedms/ISampleFile.java index 3fbbe6a18..a1a3241a2 100644 --- a/api-src/org/labkey/api/targetedms/ISampleFile.java +++ b/api-src/org/labkey/api/targetedms/ISampleFile.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms; import java.util.Date; diff --git a/api-src/org/labkey/api/targetedms/ISpectrumLibrary.java b/api-src/org/labkey/api/targetedms/ISpectrumLibrary.java index 6c7fd4810..41ea2bad9 100644 --- a/api-src/org/labkey/api/targetedms/ISpectrumLibrary.java +++ b/api-src/org/labkey/api/targetedms/ISpectrumLibrary.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms; public interface ISpectrumLibrary diff --git a/api-src/org/labkey/api/targetedms/ITargetedMSRun.java b/api-src/org/labkey/api/targetedms/ITargetedMSRun.java index a0566c173..3c01553d4 100644 --- a/api-src/org/labkey/api/targetedms/ITargetedMSRun.java +++ b/api-src/org/labkey/api/targetedms/ITargetedMSRun.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2019 LabKey Corporation + * Copyright (c) 2015-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/api-src/org/labkey/api/targetedms/RepresentativeDataState.java b/api-src/org/labkey/api/targetedms/RepresentativeDataState.java index 3a4b1773c..a077f9f25 100644 --- a/api-src/org/labkey/api/targetedms/RepresentativeDataState.java +++ b/api-src/org/labkey/api/targetedms/RepresentativeDataState.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2019 LabKey Corporation + * Copyright (c) 2012-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/api-src/org/labkey/api/targetedms/RunRepresentativeDataState.java b/api-src/org/labkey/api/targetedms/RunRepresentativeDataState.java index e83a887c6..5a2b81b28 100644 --- a/api-src/org/labkey/api/targetedms/RunRepresentativeDataState.java +++ b/api-src/org/labkey/api/targetedms/RunRepresentativeDataState.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms; public enum RunRepresentativeDataState diff --git a/api-src/org/labkey/api/targetedms/SkylineAnnotation.java b/api-src/org/labkey/api/targetedms/SkylineAnnotation.java index a0471c3c4..8a774faa6 100644 --- a/api-src/org/labkey/api/targetedms/SkylineAnnotation.java +++ b/api-src/org/labkey/api/targetedms/SkylineAnnotation.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2019 LabKey Corporation + * Copyright (c) 2015-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/api-src/org/labkey/api/targetedms/SkylineDocumentImportListener.java b/api-src/org/labkey/api/targetedms/SkylineDocumentImportListener.java index b110829c0..ddfc27f31 100644 --- a/api-src/org/labkey/api/targetedms/SkylineDocumentImportListener.java +++ b/api-src/org/labkey/api/targetedms/SkylineDocumentImportListener.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms; import org.labkey.api.data.Container; diff --git a/api-src/org/labkey/api/targetedms/TargetedMSFolderTypeListener.java b/api-src/org/labkey/api/targetedms/TargetedMSFolderTypeListener.java index a59b4fb7d..906cde612 100644 --- a/api-src/org/labkey/api/targetedms/TargetedMSFolderTypeListener.java +++ b/api-src/org/labkey/api/targetedms/TargetedMSFolderTypeListener.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms; import org.labkey.api.data.Container; diff --git a/api-src/org/labkey/api/targetedms/TargetedMSService.java b/api-src/org/labkey/api/targetedms/TargetedMSService.java index 19dee383a..da12b2847 100644 --- a/api-src/org/labkey/api/targetedms/TargetedMSService.java +++ b/api-src/org/labkey/api/targetedms/TargetedMSService.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2019 LabKey Corporation + * Copyright (c) 2015-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/api-src/org/labkey/api/targetedms/TargetedMSUrls.java b/api-src/org/labkey/api/targetedms/TargetedMSUrls.java index f00fe68a3..e7ce6a08e 100644 --- a/api-src/org/labkey/api/targetedms/TargetedMSUrls.java +++ b/api-src/org/labkey/api/targetedms/TargetedMSUrls.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms; import org.labkey.api.action.UrlProvider; diff --git a/api-src/org/labkey/api/targetedms/model/OutlierCounts.java b/api-src/org/labkey/api/targetedms/model/OutlierCounts.java index 10ca81354..891b5fc0d 100644 --- a/api-src/org/labkey/api/targetedms/model/OutlierCounts.java +++ b/api-src/org/labkey/api/targetedms/model/OutlierCounts.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms.model; import org.jetbrains.annotations.NotNull; diff --git a/api-src/org/labkey/api/targetedms/model/QCMetricConfiguration.java b/api-src/org/labkey/api/targetedms/model/QCMetricConfiguration.java index e96fae1df..82c830cb0 100644 --- a/api-src/org/labkey/api/targetedms/model/QCMetricConfiguration.java +++ b/api-src/org/labkey/api/targetedms/model/QCMetricConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/api-src/org/labkey/api/targetedms/model/QCMetricStatus.java b/api-src/org/labkey/api/targetedms/model/QCMetricStatus.java index 4b89eb8cb..e95c3c4aa 100644 --- a/api-src/org/labkey/api/targetedms/model/QCMetricStatus.java +++ b/api-src/org/labkey/api/targetedms/model/QCMetricStatus.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2024-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms.model; public enum QCMetricStatus diff --git a/api-src/org/labkey/api/targetedms/model/SampleFileInfo.java b/api-src/org/labkey/api/targetedms/model/SampleFileInfo.java index 0e97b96e2..8f290cfe5 100644 --- a/api-src/org/labkey/api/targetedms/model/SampleFileInfo.java +++ b/api-src/org/labkey/api/targetedms/model/SampleFileInfo.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms.model; import org.jetbrains.annotations.NotNull; diff --git a/api-src/org/labkey/api/targetedms/model/SampleFilePath.java b/api-src/org/labkey/api/targetedms/model/SampleFilePath.java index bb734ada5..0500d772f 100644 --- a/api-src/org/labkey/api/targetedms/model/SampleFilePath.java +++ b/api-src/org/labkey/api/targetedms/model/SampleFilePath.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2022-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.labkey.api.targetedms.model; import org.jetbrains.annotations.Nullable; diff --git a/build.gradle b/build.gradle index e250321d2..d41b7bbb6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2016-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import org.labkey.gradle.util.BuildUtils import org.labkey.gradle.util.ExternalDependency diff --git a/resources/queries/targetedms/CalibrationCurveMoleculePrecursors.sql b/resources/queries/targetedms/CalibrationCurveMoleculePrecursors.sql index 9354ca079..1e49dd699 100644 --- a/resources/queries/targetedms/CalibrationCurveMoleculePrecursors.sql +++ b/resources/queries/targetedms/CalibrationCurveMoleculePrecursors.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 LabKey Corporation + * Copyright (c) 2017-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/CalibrationCurvePrecursors.sql b/resources/queries/targetedms/CalibrationCurvePrecursors.sql index 12e0d784e..8107739a9 100644 --- a/resources/queries/targetedms/CalibrationCurvePrecursors.sql +++ b/resources/queries/targetedms/CalibrationCurvePrecursors.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 LabKey Corporation + * Copyright (c) 2017-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/DefaultGuideSet.sql b/resources/queries/targetedms/DefaultGuideSet.sql index f9d590e1d..747f784f6 100644 --- a/resources/queries/targetedms/DefaultGuideSet.sql +++ b/resources/queries/targetedms/DefaultGuideSet.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT 0 AS RowId, diff --git a/resources/queries/targetedms/GuideSetForOutliers.sql b/resources/queries/targetedms/GuideSetForOutliers.sql index 5b99b29b2..80fb128a5 100644 --- a/resources/queries/targetedms/GuideSetForOutliers.sql +++ b/resources/queries/targetedms/GuideSetForOutliers.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT RowId, TrainingStart, diff --git a/resources/queries/targetedms/InstrumentBilling.sql b/resources/queries/targetedms/InstrumentBilling.sql index fba7ba8ee..3552fe07a 100644 --- a/resources/queries/targetedms/InstrumentBilling.sql +++ b/resources/queries/targetedms/InstrumentBilling.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2025-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/InstrumentBillingByMonth.sql b/resources/queries/targetedms/InstrumentBillingByMonth.sql index eda019381..3018290cf 100644 --- a/resources/queries/targetedms/InstrumentBillingByMonth.sql +++ b/resources/queries/targetedms/InstrumentBillingByMonth.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2025-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/InstrumentSummaryByFolder.sql b/resources/queries/targetedms/InstrumentSummaryByFolder.sql index 183c11336..557fc2e56 100644 --- a/resources/queries/targetedms/InstrumentSummaryByFolder.sql +++ b/resources/queries/targetedms/InstrumentSummaryByFolder.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2021-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT COUNT(DISTINCT ReplicateId.RunId) AS SkylineDocumentCount, COUNT(DISTINCT ReplicateId) AS ReplicateCount, diff --git a/resources/queries/targetedms/PTMPercents.sql b/resources/queries/targetedms/PTMPercents.sql index aa525a65c..1dcc47e53 100644 --- a/resources/queries/targetedms/PTMPercents.sql +++ b/resources/queries/targetedms/PTMPercents.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT StructuralModId AS Modification, diff --git a/resources/queries/targetedms/PTMPercentsGrouped.sql b/resources/queries/targetedms/PTMPercentsGrouped.sql index 42402a76e..cc99f6ee4 100644 --- a/resources/queries/targetedms/PTMPercentsGrouped.sql +++ b/resources/queries/targetedms/PTMPercentsGrouped.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2023-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT PeptideGroupId, SiteLocation, diff --git a/resources/queries/targetedms/PTMPercentsGroupedPrepivot.sql b/resources/queries/targetedms/PTMPercentsGroupedPrepivot.sql index cc8fce3c4..6e9f75e9f 100644 --- a/resources/queries/targetedms/PTMPercentsGroupedPrepivot.sql +++ b/resources/queries/targetedms/PTMPercentsGroupedPrepivot.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2023-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ --Calculate the percentage for each individual modification WITH InitialGrouping AS ( (SELECT StructuralModId AS Modification, diff --git a/resources/queries/targetedms/PTMPercentsPrepivot.sql b/resources/queries/targetedms/PTMPercentsPrepivot.sql index 3b4edf2f5..c3f29f52d 100644 --- a/resources/queries/targetedms/PTMPercentsPrepivot.sql +++ b/resources/queries/targetedms/PTMPercentsPrepivot.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT ci.ModifiedAreaProportion, ci.PeptideId AS Id, ci.PeptideId.PeptideModifiedSequence, diff --git a/resources/queries/targetedms/PassportMxN.sql b/resources/queries/targetedms/PassportMxN.sql index 2170bb7f8..5cd279fa4 100644 --- a/resources/queries/targetedms/PassportMxN.sql +++ b/resources/queries/targetedms/PassportMxN.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2021-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT * FROM ( SELECT diff --git a/resources/queries/targetedms/Passport_TotalPrecursorArea.sql b/resources/queries/targetedms/Passport_TotalPrecursorArea.sql index dad1adc51..8c9715721 100644 --- a/resources/queries/targetedms/Passport_TotalPrecursorArea.sql +++ b/resources/queries/targetedms/Passport_TotalPrecursorArea.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT PrecursorId.Id, SampleFileId.ReplicateId.Name AS Replicate, SampleFileId.AcquiredTime AS AcquiredTime, diff --git a/resources/queries/targetedms/Passport_proteins.sql b/resources/queries/targetedms/Passport_proteins.sql index f53b76dae..be006926a 100644 --- a/resources/queries/targetedms/Passport_proteins.sql +++ b/resources/queries/targetedms/Passport_proteins.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT sequenceid, min(sequenceid.description) AS name, diff --git a/resources/queries/targetedms/PeptideIds.sql b/resources/queries/targetedms/PeptideIds.sql index e0b47b4bc..92b872470 100644 --- a/resources/queries/targetedms/PeptideIds.sql +++ b/resources/queries/targetedms/PeptideIds.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT PrecursorId.PeptideId.PeptideGroupId @hidden, ROUND(AVG(BestRetentionTime), 1) AS RetentionTime, diff --git a/resources/queries/targetedms/QCAnnotation.js b/resources/queries/targetedms/QCAnnotation.js index 56378343e..a712bd3e9 100644 --- a/resources/queries/targetedms/QCAnnotation.js +++ b/resources/queries/targetedms/QCAnnotation.js @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2023-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ function beforeInsert(row, errors) { if (row.date && row.date.getTime && row.enddate && row.enddate.getTime) { if (row.enddate.getTime() < row.date.getTime()) { diff --git a/resources/queries/targetedms/QCGroupingPrecursorMolecules.sql b/resources/queries/targetedms/QCGroupingPrecursorMolecules.sql index d0df7b367..126dd7df8 100644 --- a/resources/queries/targetedms/QCGroupingPrecursorMolecules.sql +++ b/resources/queries/targetedms/QCGroupingPrecursorMolecules.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ -- This query for Molecules displays under QC Summary menu 'Include or Exclude Peptides/Molecules' SELECT diff --git a/resources/queries/targetedms/QCGroupingPrecursorPeptides.sql b/resources/queries/targetedms/QCGroupingPrecursorPeptides.sql index f4bd03430..d244fb669 100644 --- a/resources/queries/targetedms/QCGroupingPrecursorPeptides.sql +++ b/resources/queries/targetedms/QCGroupingPrecursorPeptides.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ -- This query for Precursor Peptides displays under QC Summary menu 'Include or Exclude Peptides/Molecules' SELECT diff --git a/resources/queries/targetedms/QCInstrumentSummary.sql b/resources/queries/targetedms/QCInstrumentSummary.sql index 6490bc7a6..244563ce1 100644 --- a/resources/queries/targetedms/QCInstrumentSummary.sql +++ b/resources/queries/targetedms/QCInstrumentSummary.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2021-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT sf.InstrumentNickname AS Nickname, sf.InstrumentId.model AS InstrumentName, diff --git a/resources/queries/targetedms/QCMetricEnabled_precursorArea.sql b/resources/queries/targetedms/QCMetricEnabled_precursorArea.sql index 13474dae1..a74420fca 100644 --- a/resources/queries/targetedms/QCMetricEnabled_precursorArea.sql +++ b/resources/queries/targetedms/QCMetricEnabled_precursorArea.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2023-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetricEnabled_transitionArea.sql b/resources/queries/targetedms/QCMetricEnabled_transitionArea.sql index 34805d959..fda94d0b2 100644 --- a/resources/queries/targetedms/QCMetricEnabled_transitionArea.sql +++ b/resources/queries/targetedms/QCMetricEnabled_transitionArea.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2021-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorAccuracy.sql b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorAccuracy.sql index f81c77f74..5965d8e87 100644 --- a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorAccuracy.sql +++ b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorAccuracy.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT PrecursorChromInfoId, x.SampleFileId AS SampleFileId, diff --git a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOD.sql b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOD.sql index 99e462043..aab155586 100644 --- a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOD.sql +++ b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOD.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT precursorchrominfoid AS PrecursorChromInfoId, precursorchrominfoid.SampleFileId AS SampleFileId, diff --git a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOQ.sql b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOQ.sql index 317c662d9..1f40b3108 100644 --- a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOQ.sql +++ b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorLOQ.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT precursorchrominfoid AS PrecursorChromInfoId, precursorchrominfoid.SampleFileId AS SampleFileId, diff --git a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorRSquared.sql b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorRSquared.sql index ba2dd8ca7..e79e88f69 100644 --- a/resources/queries/targetedms/QCMetric_IsotopologuePrecursorRSquared.sql +++ b/resources/queries/targetedms/QCMetric_IsotopologuePrecursorRSquared.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2019-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT precursorchrominfoid AS PrecursorChromInfoId, precursorchrominfoid.SampleFileId AS SampleFileId, diff --git a/resources/queries/targetedms/QCMetric_fwb.sql b/resources/queries/targetedms/QCMetric_fwb.sql index f474ac118..d05028d23 100644 --- a/resources/queries/targetedms/QCMetric_fwb.sql +++ b/resources/queries/targetedms/QCMetric_fwb.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_fwhm.sql b/resources/queries/targetedms/QCMetric_fwhm.sql index dcd6043d5..388297036 100644 --- a/resources/queries/targetedms/QCMetric_fwhm.sql +++ b/resources/queries/targetedms/QCMetric_fwhm.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_isotopeDotp.sql b/resources/queries/targetedms/QCMetric_isotopeDotp.sql index 6609f8721..7ef04acb7 100644 --- a/resources/queries/targetedms/QCMetric_isotopeDotp.sql +++ b/resources/queries/targetedms/QCMetric_isotopeDotp.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2022-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_lhRatio.sql b/resources/queries/targetedms/QCMetric_lhRatio.sql index 8f5f0a6cc..c40f1eaf7 100644 --- a/resources/queries/targetedms/QCMetric_lhRatio.sql +++ b/resources/queries/targetedms/QCMetric_lhRatio.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_libraryDotp.sql b/resources/queries/targetedms/QCMetric_libraryDotp.sql index d27f9a179..46c10f313 100644 --- a/resources/queries/targetedms/QCMetric_libraryDotp.sql +++ b/resources/queries/targetedms/QCMetric_libraryDotp.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2022-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_massErrorPrecursor.sql b/resources/queries/targetedms/QCMetric_massErrorPrecursor.sql index 0ce0c2c75..926e7dd27 100644 --- a/resources/queries/targetedms/QCMetric_massErrorPrecursor.sql +++ b/resources/queries/targetedms/QCMetric_massErrorPrecursor.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_massErrorTransition.sql b/resources/queries/targetedms/QCMetric_massErrorTransition.sql index 20127dc67..ec4f40222 100644 --- a/resources/queries/targetedms/QCMetric_massErrorTransition.sql +++ b/resources/queries/targetedms/QCMetric_massErrorTransition.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2024-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_peakArea.sql b/resources/queries/targetedms/QCMetric_peakArea.sql index 0244e9302..7151b5a7b 100644 --- a/resources/queries/targetedms/QCMetric_peakArea.sql +++ b/resources/queries/targetedms/QCMetric_peakArea.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_precursorArea.sql b/resources/queries/targetedms/QCMetric_precursorArea.sql index 38b866020..648d043b0 100644 --- a/resources/queries/targetedms/QCMetric_precursorArea.sql +++ b/resources/queries/targetedms/QCMetric_precursorArea.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_retentionTime.sql b/resources/queries/targetedms/QCMetric_retentionTime.sql index b1a32857b..26b91e4d4 100644 --- a/resources/queries/targetedms/QCMetric_retentionTime.sql +++ b/resources/queries/targetedms/QCMetric_retentionTime.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_transitionArea.sql b/resources/queries/targetedms/QCMetric_transitionArea.sql index 9eb7d8d70..7504bf58e 100644 --- a/resources/queries/targetedms/QCMetric_transitionArea.sql +++ b/resources/queries/targetedms/QCMetric_transitionArea.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCMetric_transitionPrecursorRatio.sql b/resources/queries/targetedms/QCMetric_transitionPrecursorRatio.sql index e74b6dbe8..f176310fb 100644 --- a/resources/queries/targetedms/QCMetric_transitionPrecursorRatio.sql +++ b/resources/queries/targetedms/QCMetric_transitionPrecursorRatio.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 LabKey Corporation + * Copyright (c) 2016-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCRunMetric_iRTCorrelation.sql b/resources/queries/targetedms/QCRunMetric_iRTCorrelation.sql index d7d4061f2..edd62613e 100644 --- a/resources/queries/targetedms/QCRunMetric_iRTCorrelation.sql +++ b/resources/queries/targetedms/QCRunMetric_iRTCorrelation.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2021-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCRunMetric_iRTIntercept.sql b/resources/queries/targetedms/QCRunMetric_iRTIntercept.sql index e44aed068..7430e7761 100644 --- a/resources/queries/targetedms/QCRunMetric_iRTIntercept.sql +++ b/resources/queries/targetedms/QCRunMetric_iRTIntercept.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2021-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCRunMetric_iRTSlope.sql b/resources/queries/targetedms/QCRunMetric_iRTSlope.sql index 96215be26..63595b7ab 100644 --- a/resources/queries/targetedms/QCRunMetric_iRTSlope.sql +++ b/resources/queries/targetedms/QCRunMetric_iRTSlope.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2021-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/QCRunMetric_ticArea.sql b/resources/queries/targetedms/QCRunMetric_ticArea.sql index a2a8881d4..480f43a11 100644 --- a/resources/queries/targetedms/QCRunMetric_ticArea.sql +++ b/resources/queries/targetedms/QCRunMetric_ticArea.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2019-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/queries/targetedms/SampleFileAssayResults.sql b/resources/queries/targetedms/SampleFileAssayResults.sql index 91d150e18..68d55f8d1 100644 --- a/resources/queries/targetedms/SampleFileAssayResults.sql +++ b/resources/queries/targetedms/SampleFileAssayResults.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2021-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT SampleIdentifier AS SampleName, ReplicateId.RunId.FileName, diff --git a/resources/queries/targetedms/SampleFileForQC.sql b/resources/queries/targetedms/SampleFileForQC.sql index b2a39e209..78e8a57e3 100644 --- a/resources/queries/targetedms/SampleFileForQC.sql +++ b/resources/queries/targetedms/SampleFileForQC.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT sf.*, sf.ReplicateId.Name AS ReplicateName, diff --git a/resources/queries/targetedms/msProjectDetails.sql b/resources/queries/targetedms/msProjectDetails.sql index 0db9f4989..f32b6e094 100644 --- a/resources/queries/targetedms/msProjectDetails.sql +++ b/resources/queries/targetedms/msProjectDetails.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT p.Id, p.affiliation, diff --git a/resources/queries/targetedms/qcMetricsConfig.sql b/resources/queries/targetedms/qcMetricsConfig.sql index bb5d5082d..990fe9317 100644 --- a/resources/queries/targetedms/qcMetricsConfig.sql +++ b/resources/queries/targetedms/qcMetricsConfig.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2019-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/schemas/dbscripts/postgresql/targetedms-0.000-25.000.sql b/resources/schemas/dbscripts/postgresql/targetedms-0.000-25.000.sql index 8f3f6bd6f..165fa555b 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-0.000-25.000.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-0.000-25.000.sql @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 LabKey Corporation + * Copyright (c) 2022-2026 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/resources/schemas/dbscripts/postgresql/targetedms-25.000-25.001.sql b/resources/schemas/dbscripts/postgresql/targetedms-25.000-25.001.sql index f438b2e1c..6080dbbb7 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-25.000-25.001.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-25.000-25.001.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ CREATE TABLE targetedms.msProject ( Id SERIAL NOT NULL , diff --git a/resources/schemas/dbscripts/postgresql/targetedms-25.001-25.002.sql b/resources/schemas/dbscripts/postgresql/targetedms-25.001-25.002.sql index fb9840542..6984aea87 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-25.001-25.002.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-25.001-25.002.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ -- script from 24.11 CREATE FUNCTION targetedms.ensureColumns() RETURNS void AS $$ diff --git a/resources/schemas/dbscripts/postgresql/targetedms-25.002-25.003.sql b/resources/schemas/dbscripts/postgresql/targetedms-25.002-25.003.sql index 0ffd34850..0d89e22ce 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-25.002-25.003.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-25.002-25.003.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ CREATE TABLE targetedms.rateType ( Id SERIAL NOT NULL , diff --git a/resources/schemas/dbscripts/postgresql/targetedms-25.003-25.004.sql b/resources/schemas/dbscripts/postgresql/targetedms-25.003-25.004.sql index 7fdd571dd..44383f37e 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-25.003-25.004.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-25.003-25.004.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ CREATE TABLE targetedms.InstrumentNickname ( Id BIGSERIAL NOT NULL, diff --git a/resources/schemas/dbscripts/postgresql/targetedms-25.004-25.005.sql b/resources/schemas/dbscripts/postgresql/targetedms-25.004-25.005.sql index f7fbe1fbd..dee149ae5 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-25.004-25.005.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-25.004-25.005.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ DELETE FROM targetedms.QCMetricExclusion WHERE MetricId IN (SELECT Id FROM targetedms.QCMetricConfiguration WHERE Series2QueryName IS NOT NULL); diff --git a/resources/schemas/dbscripts/postgresql/targetedms-25.005-25.006.sql b/resources/schemas/dbscripts/postgresql/targetedms-25.005-25.006.sql index 4e7d0a41d..fab4ba8a3 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-25.005-25.006.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-25.005-25.006.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ CREATE TABLE targetedms.QCMetricCache ( Container entityid NOT NULL, diff --git a/resources/schemas/dbscripts/postgresql/targetedms-25.006-25.007.sql b/resources/schemas/dbscripts/postgresql/targetedms-25.006-25.007.sql index 16d453688..a4a229481 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-25.006-25.007.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-25.006-25.007.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ -- Don't allow duplicate project/researcher mapping rows DELETE FROM targetedms.projectresearcher WHERE Id NOT IN (SELECT MIN(Id) FROM targetedms.projectresearcher GROUP BY project, researcher); diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.000-26.001.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.000-26.001.sql index 307cb822b..a79913f4e 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.000-26.001.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.000-26.001.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ -- Add FKs to Containers and delete orphaned rows DELETE FROM targetedms.instrumentUsagePayment WHERE Container NOT IN (SELECT EntityId FROM core.Containers); DELETE FROM targetedms.instrumentSchedule WHERE Container NOT IN (SELECT EntityId FROM core.Containers); diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.001-26.002.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.001-26.002.sql index 59d26d370..ffec27429 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.001-26.002.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.001-26.002.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ CREATE TABLE targetedms.PTMPercentsGroupedPrepivotCache ( Id BIGINT NOT NULL, -- PeptideId lookup, not a primary key diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.002-26.003.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.002-26.003.sql index 9c49a31f7..6b7d43011 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.002-26.003.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.002-26.003.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ ALTER TABLE targetedms.QCAnnotationType ADD COLUMN Shareable BOOLEAN DEFAULT FALSE; ALTER TABLE targetedms.QCAnnotation ADD COLUMN instrumentModel VARCHAR(300); ALTER TABLE targetedms.QCAnnotation ADD COLUMN instrumentSerialNumber VARCHAR(200); diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.003-26.004.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.003-26.004.sql index 2238063f4..7c71d2d2d 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.003-26.004.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.003-26.004.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT core.executeJavaUpgradeCode('reparentOrphanedTargetedMSData'); -- Adding missing foreign keys to core.Containers(EntityId) diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.004-26.005.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.004-26.005.sql index 14e1c1165..06d4532f6 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.004-26.005.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.004-26.005.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ -- Dropping idx_instrumentusagepayment_instrumentscheduleid [instrumentScheduleId] because it overlaps with pk_instrumentusagepayment [instrumentScheduleId, paymentMethod] DROP INDEX targetedms.idx_instrumentusagepayment_instrumentscheduleid; -- Dropping ix_qcannotationtype_container [Container] because it overlaps with uq_qcannotationtype_containername [Container, Name] diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.005-26.006.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.005-26.006.sql index 9327670a0..039048298 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.005-26.006.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.005-26.006.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ -- When reparenting the QCEmailNotifications table from PanoramaPremium schema to targetedms, an attempt was made to -- drop this index, but the attempt failed because it targeted the old schema. This index is redundant with -- IX_qcEmailNotifications_Container. diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.006-26.007.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.006-26.007.sql index 3ee9b11ed..a8d0e4f56 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.006-26.007.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.006-26.007.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ ALTER TABLE targetedms.Runs ADD COLUMN ProteinCount INT; UPDATE targetedms.Runs r diff --git a/resources/schemas/dbscripts/postgresql/targetedms-26.007-26.008.sql b/resources/schemas/dbscripts/postgresql/targetedms-26.007-26.008.sql index 17c40a29a..8398ace0c 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-26.007-26.008.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-26.007-26.008.sql @@ -1 +1,6 @@ +/* + * Copyright (c) 2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ ALTER TABLE targetedms.QCMetricConfiguration ADD COLUMN AnnotationName VARCHAR(255); diff --git a/resources/schemas/dbscripts/postgresql/targetedms-create.sql b/resources/schemas/dbscripts/postgresql/targetedms-create.sql index 05a2653ce..6bcb29647 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-create.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-create.sql @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ CREATE VIEW targetedms.AuditLog AS ( diff --git a/resources/schemas/dbscripts/postgresql/targetedms-drop.sql b/resources/schemas/dbscripts/postgresql/targetedms-drop.sql index ce7449561..082c02d76 100644 --- a/resources/schemas/dbscripts/postgresql/targetedms-drop.sql +++ b/resources/schemas/dbscripts/postgresql/targetedms-drop.sql @@ -1 +1,6 @@ +/* + * Copyright (c) 2020-2026 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ SELECT core.fn_dropifexists('AuditLog', 'targetedms', 'VIEW', NULL); diff --git a/resources/schemas/targetedms.xml b/resources/schemas/targetedms.xml index 1ba2d107b..aabdf5017 100644 --- a/resources/schemas/targetedms.xml +++ b/resources/schemas/targetedms.xml @@ -1,7 +1,7 @@