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
5527b8b5
Commit
5527b8b5
authored
Jun 05, 2017
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove sync time from project mirror and minimum mirror sync time from application settings
parent
3d87229e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
db/post_migrate/20170510101016_remove_sync_time_from_project_mirrors_and_minimum_mirror_sync_time_from_application_settings.rb
...and_minimum_mirror_sync_time_from_application_settings.rb
+27
-0
db/schema.rb
db/schema.rb
+0
-3
No files found.
db/post_migrate/20170510101016_remove_sync_time_from_project_mirrors_and_minimum_mirror_sync_time_from_application_settings.rb
0 → 100644
View file @
5527b8b5
class
RemoveSyncTimeFromProjectMirrorsAndMinimumMirrorSyncTimeFromApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
remove_concurrent_index
:projects
,
[
:sync_time
]
if
index_exists?
:projects
,
[
:sync_time
]
remove_column
:projects
,
:sync_time
,
:integer
remove_column
:application_settings
,
:minimum_mirror_sync_time
ApplicationSetting
.
expire
end
def
down
add_column
:projects
,
:sync_time
,
:integer
add_concurrent_index
:projects
,
[
:sync_time
]
add_column_with_default
:application_settings
,
:minimum_mirror_sync_time
,
:integer
,
default:
15
,
allow_null:
false
end
end
db/schema.rb
View file @
5527b8b5
...
...
@@ -123,7 +123,6 @@ ActiveRecord::Schema.define(version: 20170602003304) do
t
.
integer
"unique_ips_limit_per_user"
t
.
integer
"unique_ips_limit_time_window"
t
.
boolean
"unique_ips_limit_enabled"
,
default:
false
,
null:
false
t
.
integer
"minimum_mirror_sync_time"
,
default:
15
,
null:
false
t
.
string
"default_artifacts_expire_in"
,
default:
"0"
,
null:
false
t
.
string
"elasticsearch_url"
,
default:
"http://localhost:9200"
t
.
boolean
"elasticsearch_aws"
,
default:
false
,
null:
false
...
...
@@ -1156,7 +1155,6 @@ ActiveRecord::Schema.define(version: 20170602003304) do
t
.
text
"description_html"
t
.
boolean
"only_allow_merge_if_all_discussions_are_resolved"
t
.
integer
"repository_size_limit"
,
limit:
8
t
.
integer
"sync_time"
,
default:
60
,
null:
false
t
.
boolean
"printing_merge_request_link_enabled"
,
default:
true
,
null:
false
t
.
integer
"auto_cancel_pending_pipelines"
,
default:
1
,
null:
false
t
.
boolean
"service_desk_enabled"
...
...
@@ -1180,7 +1178,6 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_index
"projects"
,
[
"pending_delete"
],
name:
"index_projects_on_pending_delete"
,
using: :btree
add_index
"projects"
,
[
"runners_token"
],
name:
"index_projects_on_runners_token"
,
using: :btree
add_index
"projects"
,
[
"star_count"
],
name:
"index_projects_on_star_count"
,
using: :btree
add_index
"projects"
,
[
"sync_time"
],
name:
"index_projects_on_sync_time"
,
using: :btree
add_index
"projects"
,
[
"visibility_level"
],
name:
"index_projects_on_visibility_level"
,
using: :btree
create_table
"protected_branch_merge_access_levels"
,
force: :cascade
do
|
t
|
...
...
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