Skip to content

Add source_enterprise column to BulkImports table

What does this MR do and why?

  • This MR adds source_enterprise column to bulk_imports table. This table is low volume (4k rows).
  • It's going to be used in GitLab Migration Importer (https://docs.gitlab.com/ee/user/group/import/) to store source GitLab instance enterprise information (if it's EE or not)
  • This helps the importer to decide if EE data should be migrated or not (will be done in the future MR)
Migration Output

main: == 20221116124821 AddEnterpriseBooleanToBulkImports: migrating ================ main: -- add_column(:bulk_imports, :source_enterprise, :boolean, {:default=>true, :null=>false}) main: -> 0.0078s main: == 20221116124821 AddEnterpriseBooleanToBulkImports: migrated (0.0085s) =======

ci: == 20221116124821 AddEnterpriseBooleanToBulkImports: migrating ================ ci: -- add_column(:bulk_imports, :source_enterprise, :boolean, {:default=>true, :null=>false}) ci: -> 0.0050s ci: == 20221116124821 AddEnterpriseBooleanToBulkImports: migrated (0.0051s) =======

db:gitlabcom-database-testing job passed https://gitlab.com/gitlab-org/gitlab/-/jobs/3332097204

Mentions #375588 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by George Koltsov

Merge request reports