summaryrefslogtreecommitdiffstats
path: root/migrations/2020-12-14-100454_artifact-unique-by-job/up.sql
blob: db290347a5b5c2ae26560a8deb6240c8bba6bdbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--
-- Copyright (c) 2020-2021 science+computing ag and other contributors
--
-- This program and the accompanying materials are made
-- available under the terms of the Eclipse Public License 2.0
-- which is available at https://www.eclipse.org/legal/epl-2.0/
--
-- SPDX-License-Identifier: EPL-2.0
--

-- Your SQL goes here
ALTER TABLE
    artifacts
ADD CONSTRAINT
    path_job_id_unique
    UNIQUE (path, job_id)