Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-02-26 12:21:03 +0300
committerShinya Maeda <shinya@gitlab.com>2018-03-06 11:02:47 +0300
commitb5f5b6dc50b2963f3190caecf12f63d4ba2da878 (patch)
tree010c77127fc0cfa8ecf18b2239281342ad4db7d7 /db
parent2e87923dcb1cf7984690f5b5fdfc61bddfba923e (diff)
Add checksum to ci_job_artifacts
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb8
-rw-r--r--db/schema.rb1
2 files changed, 9 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..30973f6f5c5
--- /dev/null
+++ b/db/migrate/20180226050030_add_checksum_to_ci_job_artifacts.rb
@@ -0,0 +1,8 @@
+class AddChecksumToCiJobArtifacts < ActiveRecord::Migration
+ DOWNTIME = false
+
+ def change
+ add_column :ci_job_artifacts, :checksum, :string, limit: 64
+ end
+end
+
diff --git a/db/schema.rb b/db/schema.rb
index 9e117440ed2..6a752593c96 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -346,6 +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
end
add_index "ci_job_artifacts", ["expire_at", "job_id"], name: "index_ci_job_artifacts_on_expire_at_and_job_id", using: :btree