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
19557e8c
Commit
19557e8c
authored
Oct 04, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up tracking DB with FileRegistry entries to redownload files
parent
c3bf1e21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
db/geo/migrate/20171005045404_remove_file_uploads_from_registry.rb
...grate/20171005045404_remove_file_uploads_from_registry.rb
+7
-0
db/geo/schema.rb
db/geo/schema.rb
+1
-1
doc/development/geo.md
doc/development/geo.md
+1
-1
No files found.
db/geo/migrate/20171005045404_remove_file_uploads_from_registry.rb
0 → 100644
View file @
19557e8c
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
end
end
db/geo/schema.rb
View file @
19557e8c
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017
0906182752
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017
1005045404
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
doc/development/geo.md
View file @
19557e8c
...
...
@@ -141,7 +141,7 @@ The database configuration is set in `config/database_geo.yml`.
To write a migration for the database, use the
`GeoMigrationGenerator`
:
```
rails g geo_generat
or
[args] [options]
rails g geo_generat
ion
[args] [options]
```
To migrate the tracking database, run:
...
...
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