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/20230821101010_remove_crl_null.rb')
-rw-r--r--db/migrate/20230821101010_remove_crl_null.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20230821101010_remove_crl_null.rb b/db/migrate/20230821101010_remove_crl_null.rb
new file mode 100644
index 00000000000..16fa512a65a
--- /dev/null
+++ b/db/migrate/20230821101010_remove_crl_null.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class RemoveCrlNull < Gitlab::Database::Migration[2.1]
+ def up
+ change_column_null :x509_certificates, :subject, true
+ change_column_null :x509_issuers, :subject, true
+ change_column_null :x509_issuers, :crl_url, true
+ end
+
+ def down
+ change_column_null :x509_certificates, :subject, false
+ change_column_null :x509_issuers, :subject, false
+ change_column_null :x509_issuers, :crl_url, false
+ end
+end