Commit 1b00af9b authored by Rubén Dávila's avatar Rubén Dávila

Increase the size of `path` in order to allow locks for long paths

parent 1eeacb0c
......@@ -6,7 +6,7 @@ class CreateLfsFileLocks < ActiveRecord::Migration
t.references :project, null: false, foreign_key: { on_delete: :cascade }
t.references :user, null: false, index: true, foreign_key: { on_delete: :cascade }
t.datetime :created_at, null: false
t.string :path, limit: 65500
t.string :path, limit: 511
end
add_index :lfs_file_locks, [:project_id, :path], unique: true
......
......@@ -1306,7 +1306,7 @@ ActiveRecord::Schema.define(version: 20180204200836) do
t.integer "project_id", null: false
t.integer "user_id", null: false
t.datetime "created_at", null: false
t.string "path", limit: 65500
t.string "path", limit: 511
end
add_index "lfs_file_locks", ["project_id", "path"], name: "index_lfs_file_locks_on_project_id_and_path", unique: true, using: :btree
......
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