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
f6df3808
Commit
f6df3808
authored
Jul 20, 2017
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change mirror_max_delay default value migration
parent
f58986b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
db/migrate/20170719182937_convert_max_mirror_delay_to_minutes_in_application_settings.rb
...rt_max_mirror_delay_to_minutes_in_application_settings.rb
+15
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20170719182937_convert_max_mirror_delay_to_minutes_in_application_settings.rb
0 → 100644
View file @
f6df3808
class
ConvertMaxMirrorDelayToMinutesInApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
change_column_default
:application_settings
,
:mirror_max_delay
,
300
execute
'UPDATE application_settings SET mirror_max_delay = 300'
end
def
down
change_column_default
:application_settings
,
:mirror_max_delay
,
5
execute
'UPDATE application_settings SET mirror_max_delay = 5'
end
end
db/schema.rb
View file @
f6df3808
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017071
7150329
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017071
9182937
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -137,7 +137,7 @@ ActiveRecord::Schema.define(version: 20170717150329) do
t
.
string
"clientside_sentry_dsn"
t
.
boolean
"prometheus_metrics_enabled"
,
default:
false
,
null:
false
t
.
boolean
"check_namespace_plan"
,
default:
false
,
null:
false
t
.
integer
"mirror_max_delay"
,
default:
5
,
null:
false
t
.
integer
"mirror_max_delay"
,
default:
300
,
null:
false
t
.
integer
"mirror_max_capacity"
,
default:
100
,
null:
false
t
.
integer
"mirror_capacity_threshold"
,
default:
50
,
null:
false
t
.
boolean
"authorized_keys_enabled"
,
default:
true
,
null:
false
...
...
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