summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-03-06 17:16:33 +0900
committerShinya Maeda <shinya@gitlab.com>2018-03-06 17:16:33 +0900
commit03438886e1de94df6bd89471e67aa6347fd5fb2e (patch)
tree320f64b999c9a97cdcfca33e5a9dd4a88195738d /db
parenta1c612ce2dc2b42137664f73c3a70f3a283bcc0a (diff)
downloadgitlab-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.rb2
-rw-r--r--db/schema.rb2
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