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
7379ac01
Commit
7379ac01
authored
Oct 05, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only prune non-LFS files
parent
19557e8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
db/geo/migrate/20171005045404_remove_file_uploads_from_registry.rb
...grate/20171005045404_remove_file_uploads_from_registry.rb
+5
-4
No files found.
db/geo/migrate/20171005045404_remove_file_uploads_from_registry.rb
View file @
7379ac01
class
RemoveFileUploadsFromRegistry
<
ActiveRecord
::
Migration
# Previous to GitLab 10.0, GitLab would save attachments/avatars to the wrong
# directory. Destroy these entries so they will be downloaded again.
def
change
Geo
::
FileRegistry
.
destroy_all
# Previous to GitLab 10.1, GitLab would save attachments/avatars to the
# wrong directory (/var/opt/gitlab/gitlab-rails/working). Destroy these
# entries so they will be downloaded again.
def
up
Geo
::
BaseRegistry
.
connection
.
execute
(
"DELETE FROM file_registry WHERE file_type != 'lfs'"
)
end
end
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