diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-02-28 20:49:50 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-03-06 17:02:47 +0900 |
commit | c2954f38150fa5654fe63dd37f36de550e5f3679 (patch) | |
tree | 0f86cab39156e834fe3c39a27d18d7d27dadad09 | |
parent | b5f5b6dc50b2963f3190caecf12f63d4ba2da878 (diff) | |
download | gitlab-ce-c2954f38150fa5654fe63dd37f36de550e5f3679.tar.gz |
Change column type to binary from string
-rw-r--r-- | db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb | 3 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 2 insertions, 3 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 30973f6f5c5..dd1b9339b28 100644 --- a/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb +++ b/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb @@ -2,7 +2,6 @@ class AddChecksumToCiJobArtifacts < ActiveRecord::Migration DOWNTIME = false def change - add_column :ci_job_artifacts, :checksum, :string, limit: 64 + add_column :ci_job_artifacts, :checksum, :binary end end - diff --git a/db/schema.rb b/db/schema.rb index 6a752593c96..bfe95199e83 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.string "checksum", limit: 64 + t.binary "checksum" end add_index "ci_job_artifacts", ["expire_at", "job_id"], name: "index_ci_job_artifacts_on_expire_at_and_job_id", using: :btree |