Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1b00af9b
Commit
1b00af9b
authored
Jan 27, 2018
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase the size of `path` in order to allow locks for long paths
parent
1eeacb0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db/migrate/20180116193854_create_lfs_file_locks.rb
db/migrate/20180116193854_create_lfs_file_locks.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20180116193854_create_lfs_file_locks.rb
View file @
1b00af9b
...
@@ -6,7 +6,7 @@ class CreateLfsFileLocks < ActiveRecord::Migration
...
@@ -6,7 +6,7 @@ class CreateLfsFileLocks < ActiveRecord::Migration
t
.
references
:project
,
null:
false
,
foreign_key:
{
on_delete: :cascade
}
t
.
references
:project
,
null:
false
,
foreign_key:
{
on_delete: :cascade
}
t
.
references
:user
,
null:
false
,
index:
true
,
foreign_key:
{
on_delete: :cascade
}
t
.
references
:user
,
null:
false
,
index:
true
,
foreign_key:
{
on_delete: :cascade
}
t
.
datetime
:created_at
,
null:
false
t
.
datetime
:created_at
,
null:
false
t
.
string
:path
,
limit:
65500
t
.
string
:path
,
limit:
511
end
end
add_index
:lfs_file_locks
,
[
:project_id
,
:path
],
unique:
true
add_index
:lfs_file_locks
,
[
:project_id
,
:path
],
unique:
true
...
...
db/schema.rb
View file @
1b00af9b
...
@@ -1306,7 +1306,7 @@ ActiveRecord::Schema.define(version: 20180204200836) do
...
@@ -1306,7 +1306,7 @@ ActiveRecord::Schema.define(version: 20180204200836) do
t
.
integer
"project_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
integer
"user_id"
,
null:
false
t
.
integer
"user_id"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
string
"path"
,
limit:
65500
t
.
string
"path"
,
limit:
511
end
end
add_index
"lfs_file_locks"
,
[
"project_id"
,
"path"
],
name:
"index_lfs_file_locks_on_project_id_and_path"
,
unique:
true
,
using: :btree
add_index
"lfs_file_locks"
,
[
"project_id"
,
"path"
],
name:
"index_lfs_file_locks_on_project_id_and_path"
,
unique:
true
,
using: :btree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment