提交 c2954f38 编写于 作者: S Shinya Maeda

Change column type to binary from string

上级 b5f5b6dc
......@@ -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
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册