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/20230626070959_add_not_null_to_external_audit_event.rb')
-rw-r--r--db/migrate/20230626070959_add_not_null_to_external_audit_event.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20230626070959_add_not_null_to_external_audit_event.rb b/db/migrate/20230626070959_add_not_null_to_external_audit_event.rb
new file mode 100644
index 00000000000..e6d75c1dc68
--- /dev/null
+++ b/db/migrate/20230626070959_add_not_null_to_external_audit_event.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class AddNotNullToExternalAuditEvent < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ def up
+ change_column_null :audit_events_external_audit_event_destinations, :name, false
+ end
+
+ def down
+ change_column_null :audit_events_external_audit_event_destinations, :name, true
+ end
+end