summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-03-06 08:43:25 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-03-06 08:43:25 +0000
commita28045124f33c67068246df91d9c0ca17c3ad035 (patch)
treeba8c56804c75734b02badaa3bbde6f67a8494186 /db
parent09634b980846c4d50879568f531bcff9b38cce3b (diff)
parent03438886e1de94df6bd89471e67aa6347fd5fb2e (diff)
downloadgitlab-ce-a28045124f33c67068246df91d9c0ca17c3ad035.tar.gz
Merge branch 'feature/sm/add-check-sum-to-job-artifacts' into 'master'
Add checksum to ci_job_artifacts Closes #43599 See merge request gitlab-org/gitlab-ce!17354
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb7
-rw-r--r--db/schema.rb1
2 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb b/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb
new file mode 100644
index 00000000000..54e6e35449e
--- /dev/null
+++ b/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb
@@ -0,0 +1,7 @@
+class AddChecksumToCiJobArtifacts < ActiveRecord::Migration
+ DOWNTIME = false
+
+ def change
+ add_column :ci_job_artifacts, :file_sha256, :binary
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index e28a7560d00..0881a1af945 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -346,6 +346,7 @@ ActiveRecord::Schema.define(version: 20180305144721) do
t.datetime_with_timezone "updated_at", null: false
t.datetime_with_timezone "expire_at"
t.string "file"
+ t.binary "file_sha256"
end
add_index "ci_job_artifacts", ["expire_at", "job_id"], name: "index_ci_job_artifacts_on_expire_at_and_job_id", using: :btree