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:
Diffstat (limited to 'db/migrate/20230731121354_remove_not_null_from_subscription_add_on_purchases_namespace_id.rb')
-rw-r--r--db/migrate/20230731121354_remove_not_null_from_subscription_add_on_purchases_namespace_id.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20230731121354_remove_not_null_from_subscription_add_on_purchases_namespace_id.rb b/db/migrate/20230731121354_remove_not_null_from_subscription_add_on_purchases_namespace_id.rb
new file mode 100644
index 00000000000..1de02e0f4ed
--- /dev/null
+++ b/db/migrate/20230731121354_remove_not_null_from_subscription_add_on_purchases_namespace_id.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class RemoveNotNullFromSubscriptionAddOnPurchasesNamespaceId < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ def up
+ change_column_null :subscription_add_on_purchases, :namespace_id, true
+ end
+
+ def down
+ change_column_null :subscription_add_on_purchases, :namespace_id, false
+ end
+end