diff options
Diffstat (limited to 'db/post_migrate/20231030051840_add_not_null_to_packages_tags_project_id.rb')
-rw-r--r-- | db/post_migrate/20231030051840_add_not_null_to_packages_tags_project_id.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/post_migrate/20231030051840_add_not_null_to_packages_tags_project_id.rb b/db/post_migrate/20231030051840_add_not_null_to_packages_tags_project_id.rb new file mode 100644 index 00000000000..6541861cd45 --- /dev/null +++ b/db/post_migrate/20231030051840_add_not_null_to_packages_tags_project_id.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class AddNotNullToPackagesTagsProjectId < Gitlab::Database::Migration[2.2] + milestone '16.6' + disable_ddl_transaction! + + def up + add_not_null_constraint :packages_tags, :project_id, validate: false + end + + def down + remove_not_null_constraint :packages_tags, :project_id + end +end |