diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 17:16:33 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 17:16:33 +0900 |
commit | 03438886e1de94df6bd89471e67aa6347fd5fb2e (patch) | |
tree | 320f64b999c9a97cdcfca33e5a9dd4a88195738d /db | |
parent | a1c612ce2dc2b42137664f73c3a70f3a283bcc0a (diff) | |
download | gitlab-ce-03438886e1de94df6bd89471e67aa6347fd5fb2e.tar.gz |
Change column to file_sha256. Add test. Add changelog
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 2 insertions, 2 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 index dd1b9339b28..54e6e35449e 100644 --- a/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb +++ b/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb @@ -2,6 +2,6 @@ class AddChecksumToCiJobArtifacts < ActiveRecord::Migration DOWNTIME = false def change - add_column :ci_job_artifacts, :checksum, :binary + add_column :ci_job_artifacts, :file_sha256, :binary end end diff --git a/db/schema.rb b/db/schema.rb index bfe95199e83..eb92cf030ee 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -346,7 +346,7 @@ ActiveRecord::Schema.define(version: 20180304204842) do t.datetime_with_timezone "updated_at", null: false t.datetime_with_timezone "expire_at" t.string "file" - t.binary "checksum" + 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 |