Skip to content
Snippets Groups Projects
Commit 75da9045 authored by Shane Maglangit's avatar Shane Maglangit
Browse files

Backfill project organization_id column

Ensure all Projects are associated to an Organization

Changelog: other
parent d3503d57
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class BackfillProjectsOrganizationId < Gitlab::Database::Migration[2.2]
milestone '17.6'
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
disable_ddl_transaction!
def up
execute "UPDATE projects SET organization_id = 1 WHERE organization_id IS NULL"
end
def down
# no-op
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment