diff options
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 |