summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2019-02-20 15:37:49 +0900
committerShinya Maeda <shinya@gitlab.com>2019-02-27 17:12:04 +0900
commit314062fec5a1d1f56a63202fa16fc7dacc876083 (patch)
tree1eccb736a2de4274ece3f9acc1c74efe9033ff8c /db/migrate
parentaa77c5bd342a625c99eba8d0c1fb625b6811d412 (diff)
downloadgitlab-ce-314062fec5a1d1f56a63202fa16fc7dacc876083.tar.gz
Persist source sha and target sha for merge pipelines
source_sha and target_sha are used for merge request pipelines
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190220150130_add_extra_shas_to_ci_pipelines.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20190220150130_add_extra_shas_to_ci_pipelines.rb b/db/migrate/20190220150130_add_extra_shas_to_ci_pipelines.rb
new file mode 100644
index 00000000000..45c7c0949c6
--- /dev/null
+++ b/db/migrate/20190220150130_add_extra_shas_to_ci_pipelines.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+class AddExtraShasToCiPipelines < ActiveRecord::Migration[5.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ add_column :ci_pipelines, :source_sha, :binary
+ add_column :ci_pipelines, :target_sha, :binary
+ end
+end