diff options
| author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-11-30 16:05:17 +0100 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-12-03 12:05:23 +0100 |
| commit | 592e0877f470efbb224043a6f887265afa070e0b (patch) | |
| tree | 5dbf790023a6930ec98e02297eb94e98f882d01e /db/schema.rb | |
| parent | ab02bd69425fe17e65717bed91e99b62e11c0e74 (diff) | |
| download | gitlab-ce-592e0877f470efbb224043a6f887265afa070e0b.tar.gz | |
Add unique index on job_id and file_type
Diffstat (limited to 'db/schema.rb')
| -rw-r--r-- | db/schema.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 0f71463acd8..3ec183f1c05 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171124150326) do +ActiveRecord::Schema.define(version: 20171130145523) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -330,6 +330,7 @@ ActiveRecord::Schema.define(version: 20171124150326) do end add_index "ci_job_artifacts", ["file_type"], name: "index_ci_job_artifacts_on_file_type", using: :btree + add_index "ci_job_artifacts", ["job_id", "file_type"], name: "index_ci_job_artifacts_on_job_id_and_file_type", unique: true, using: :btree add_index "ci_job_artifacts", ["job_id"], name: "index_ci_job_artifacts_on_job_id", using: :btree add_index "ci_job_artifacts", ["project_id"], name: "index_ci_job_artifacts_on_project_id", using: :btree |
