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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-09-04 18:08:40 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-04 18:08:40 +0300
commit001c23394e75d0e797261527779294ad11542f6d (patch)
tree20d27fcee25e14242ee85cdb0b9ad794ecc0c103 /db/migrate/20230822064649_add_organization_id_to_project.rb
parent25f102516f8d77c397c768baa2e550779cc9c60b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20230822064649_add_organization_id_to_project.rb')
-rw-r--r--db/migrate/20230822064649_add_organization_id_to_project.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20230822064649_add_organization_id_to_project.rb b/db/migrate/20230822064649_add_organization_id_to_project.rb
new file mode 100644
index 00000000000..9607f711981
--- /dev/null
+++ b/db/migrate/20230822064649_add_organization_id_to_project.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class AddOrganizationIdToProject < Gitlab::Database::Migration[2.1]
+ DEFAULT_ORGANIZATION_ID = 1
+
+ enable_lock_retries!
+
+ def change
+ add_column :projects, :organization_id, :bigint, default: DEFAULT_ORGANIZATION_ID, null: true # rubocop:disable Migration/AddColumnsToWideTables
+ end
+end