Commit b5f4ed37 authored by Shinya Maeda's avatar Shinya Maeda

Fix length size to use TEXT

parent b38b5605
......@@ -9,10 +9,10 @@ class AddIndexToCiBuildsArtifactsFile < ActiveRecord::Migration
# We add an temporary index to `ci_builds.artifacts_file` column to avoid statements timeout in legacy artifacts migrations
# This index is to be removed after we have cleaned up background migrations
add_concurrent_index :ci_builds, :artifacts_file, where: "artifacts_file <> ''", length: 65535
add_concurrent_index :ci_builds, :artifacts_file, where: "artifacts_file <> ''", length: 65535 - 1
def down
remove_concurrent_index :ci_builds, :artifacts_file, where: "artifacts_file <> ''", length: 65535
remove_concurrent_index :ci_builds, :artifacts_file, where: "artifacts_file <> ''", length: 65535 - 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment