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
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20230609065641_initialize_conversion_of_ci_pipeline_variables_pipeline_id.rb')
-rw-r--r--db/migrate/20230609065641_initialize_conversion_of_ci_pipeline_variables_pipeline_id.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20230609065641_initialize_conversion_of_ci_pipeline_variables_pipeline_id.rb b/db/migrate/20230609065641_initialize_conversion_of_ci_pipeline_variables_pipeline_id.rb
new file mode 100644
index 00000000000..09dfda68851
--- /dev/null
+++ b/db/migrate/20230609065641_initialize_conversion_of_ci_pipeline_variables_pipeline_id.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class InitializeConversionOfCiPipelineVariablesPipelineId < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ TABLE = :ci_pipeline_variables
+ COLUMNS = %i[pipeline_id]
+
+ def up
+ initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS)
+ end
+
+ def down
+ revert_initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS)
+ end
+end