summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-02-05 15:28:09 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-02-05 15:28:09 +0000
commit0e15a5b805e832c22c67cead8c4829e6c77cd498 (patch)
treeb089759f9810c6439198e134615196b4d8078559 /db
parent2fe09e6a12e4f533d77517ddd7fe40fc53522f92 (diff)
parentce84d1835332932e25ebdc2cfbe44ff301328a1f (diff)
downloadgitlab-ce-0e15a5b805e832c22c67cead8c4829e6c77cd498.tar.gz
Merge branch '42547-upload-store-mount-point' into 'master'
Store uploader context in uploads Closes #42547 See merge request gitlab-org/gitlab-ce!16779
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180129193323_add_uploads_builder_context.rb14
-rw-r--r--db/schema.rb2
2 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20180129193323_add_uploads_builder_context.rb b/db/migrate/20180129193323_add_uploads_builder_context.rb
new file mode 100644
index 00000000000..b3909a770ca
--- /dev/null
+++ b/db/migrate/20180129193323_add_uploads_builder_context.rb
@@ -0,0 +1,14 @@
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddUploadsBuilderContext < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ add_column :uploads, :mount_point, :string
+ add_column :uploads, :secret, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 14024164359..50a2ceaaeee 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1751,6 +1751,8 @@ ActiveRecord::Schema.define(version: 20180202111106) do
t.string "model_type"
t.string "uploader", null: false
t.datetime "created_at", null: false
+ t.string "mount_point"
+ t.string "secret"
end
add_index "uploads", ["checksum"], name: "index_uploads_on_checksum", using: :btree