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/20200909194014_change_pypi_python_version_type_cleanup.rb')
-rw-r--r--db/post_migrate/20200909194014_change_pypi_python_version_type_cleanup.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/db/post_migrate/20200909194014_change_pypi_python_version_type_cleanup.rb b/db/post_migrate/20200909194014_change_pypi_python_version_type_cleanup.rb
deleted file mode 100644
index c94f745e762..00000000000
--- a/db/post_migrate/20200909194014_change_pypi_python_version_type_cleanup.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# frozen_string_literal: true
-
-class ChangePypiPythonVersionTypeCleanup < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- cleanup_concurrent_column_type_change(:packages_pypi_metadata, :required_python)
- end
-
- def down
- execute('UPDATE packages_pypi_metadata SET required_python = substring(required_python from 1 for 50)')
- change_column_type_concurrently :packages_pypi_metadata, :required_python, 'varchar(50)', batch_column_name: :package_id
- end
-end