diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 12:07:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 12:07:12 +0000 |
commit | 43771438e9ccf20d1b6cf12b690e63844d7c3d49 (patch) | |
tree | 147aefba22d99be62ff3c112f50e205e486e58c7 /db/post_migrate/20230512143000_remove_dependency_list_exports_project_id_not_null_constraint.rb | |
parent | eeb25534bae1021f5b7940138ee56dea8fc79949 (diff) | |
download | gitlab-ce-43771438e9ccf20d1b6cf12b690e63844d7c3d49.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/post_migrate/20230512143000_remove_dependency_list_exports_project_id_not_null_constraint.rb')
-rw-r--r-- | db/post_migrate/20230512143000_remove_dependency_list_exports_project_id_not_null_constraint.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/post_migrate/20230512143000_remove_dependency_list_exports_project_id_not_null_constraint.rb b/db/post_migrate/20230512143000_remove_dependency_list_exports_project_id_not_null_constraint.rb new file mode 100644 index 00000000000..d7077e9dfdd --- /dev/null +++ b/db/post_migrate/20230512143000_remove_dependency_list_exports_project_id_not_null_constraint.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class RemoveDependencyListExportsProjectIdNotNullConstraint < Gitlab::Database::Migration[2.1] + def up + change_column_null :dependency_list_exports, :project_id, true + end + + def down + # no-op as there can be null values after the migration + end +end |