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/post_migrate/20220321025720_alter_constraint_remote_import_url.rb')
-rw-r--r--db/post_migrate/20220321025720_alter_constraint_remote_import_url.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/post_migrate/20220321025720_alter_constraint_remote_import_url.rb b/db/post_migrate/20220321025720_alter_constraint_remote_import_url.rb
new file mode 100644
index 00000000000..90cb54cdd44
--- /dev/null
+++ b/db/post_migrate/20220321025720_alter_constraint_remote_import_url.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+class AlterConstraintRemoteImportUrl < Gitlab::Database::Migration[1.0]
+ disable_ddl_transaction!
+
+ def up
+ remove_text_limit :import_export_uploads, :remote_import_url
+ add_text_limit :import_export_uploads, :remote_import_url, 2048
+ end
+
+ def down
+ # no-op
+ end
+end