diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-02-27 01:22:51 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-02-27 12:52:53 +0100 |
commit | 316889cb4789e8a4a43bf0c79a4269643a97c336 (patch) | |
tree | 30cae54941b0a3d8bb405d19bb2076d4d5c09cf4 /db/migrate | |
parent | da8fce1f04e169837ec3526617464836f741e276 (diff) | |
download | gitlab-ce-316889cb4789e8a4a43bf0c79a4269643a97c336.tar.gz |
Revert "Merge branch 'revert-8baf9e5f' into 'master'"
This reverts commit f5201a816f2eff9393e16f362403451e5d86ee6c, reversing
changes made to 48e6db0dad6f256e8423e0bd6c9b254803f50ccf.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20190218134158_add_masked_to_ci_variables.rb | 21 | ||||
-rw-r--r-- | db/migrate/20190218134209_add_masked_to_ci_group_variables.rb | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/db/migrate/20190218134158_add_masked_to_ci_variables.rb b/db/migrate/20190218134158_add_masked_to_ci_variables.rb new file mode 100644 index 00000000000..b4999d5b4a9 --- /dev/null +++ b/db/migrate/20190218134158_add_masked_to_ci_variables.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddMaskedToCiVariables < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default :ci_variables, :masked, :boolean, default: false, allow_null: false + end + + def down + remove_column :ci_variables, :masked + end +end diff --git a/db/migrate/20190218134209_add_masked_to_ci_group_variables.rb b/db/migrate/20190218134209_add_masked_to_ci_group_variables.rb new file mode 100644 index 00000000000..8633875b341 --- /dev/null +++ b/db/migrate/20190218134209_add_masked_to_ci_group_variables.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddMaskedToCiGroupVariables < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default :ci_group_variables, :masked, :boolean, default: false, allow_null: false + end + + def down + remove_column :ci_group_variables, :masked + end +end |