BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3c571baf
Commit
3c571baf
authored
Feb 02, 2017
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use non-downtime migration for ApplicationSetting’s max_pages_size
parent
01b14b2d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
20151215132013_add_pages_size_to_application_settings.rb
.../20151215132013_add_pages_size_to_application_settings.rb
+10
-1
20160210105555_create_pages_domain.rb
db/migrate/20160210105555_create_pages_domain.rb
+2
-0
schema.rb
db/schema.rb
+4
-4
No files found.
db/migrate/20151215132013_add_pages_size_to_application_settings.rb
View file @
3c571baf
class
AddPagesSizeToApplicationSettings
<
ActiveRecord
::
Migration
class
AddPagesSizeToApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
disable_ddl_transaction!
DOWNTIME
=
false
def
up
def
up
add_column
:application_settings
,
:max_pages_size
,
:integer
,
default:
100
,
null:
false
add_column_with_default
:application_settings
,
:max_pages_size
,
:integer
,
default:
100
,
allow_null:
false
end
def
down
remove_column
(
:application_settings
,
:max_pages_size
)
end
end
end
end
db/migrate/20160210105555_create_pages_domain.rb
View file @
3c571baf
class
CreatePagesDomain
<
ActiveRecord
::
Migration
class
CreatePagesDomain
<
ActiveRecord
::
Migration
DOWNTIME
=
false
def
change
def
change
create_table
:pages_domains
do
|
t
|
create_table
:pages_domains
do
|
t
|
t
.
integer
:project_id
t
.
integer
:project_id
...
...
db/schema.rb
View file @
3c571baf
...
@@ -61,7 +61,6 @@ ActiveRecord::Schema.define(version: 20170130204620) do
...
@@ -61,7 +61,6 @@ ActiveRecord::Schema.define(version: 20170130204620) do
t
.
boolean
"shared_runners_enabled"
,
default:
true
,
null:
false
t
.
boolean
"shared_runners_enabled"
,
default:
true
,
null:
false
t
.
integer
"max_artifacts_size"
,
default:
100
,
null:
false
t
.
integer
"max_artifacts_size"
,
default:
100
,
null:
false
t
.
string
"runners_registration_token"
t
.
string
"runners_registration_token"
t
.
integer
"max_pages_size"
,
default:
100
,
null:
false
t
.
boolean
"require_two_factor_authentication"
,
default:
false
t
.
boolean
"require_two_factor_authentication"
,
default:
false
t
.
integer
"two_factor_grace_period"
,
default:
48
t
.
integer
"two_factor_grace_period"
,
default:
48
t
.
boolean
"metrics_enabled"
,
default:
false
t
.
boolean
"metrics_enabled"
,
default:
false
...
@@ -99,17 +98,18 @@ ActiveRecord::Schema.define(version: 20170130204620) do
...
@@ -99,17 +98,18 @@ ActiveRecord::Schema.define(version: 20170130204620) do
t
.
text
"help_page_text_html"
t
.
text
"help_page_text_html"
t
.
text
"shared_runners_text_html"
t
.
text
"shared_runners_text_html"
t
.
text
"after_sign_up_text_html"
t
.
text
"after_sign_up_text_html"
t
.
boolean
"sidekiq_throttling_enabled"
,
default:
false
t
.
string
"sidekiq_throttling_queues"
t
.
decimal
"sidekiq_throttling_factor"
t
.
boolean
"housekeeping_enabled"
,
default:
true
,
null:
false
t
.
boolean
"housekeeping_enabled"
,
default:
true
,
null:
false
t
.
boolean
"housekeeping_bitmaps_enabled"
,
default:
true
,
null:
false
t
.
boolean
"housekeeping_bitmaps_enabled"
,
default:
true
,
null:
false
t
.
integer
"housekeeping_incremental_repack_period"
,
default:
10
,
null:
false
t
.
integer
"housekeeping_incremental_repack_period"
,
default:
10
,
null:
false
t
.
integer
"housekeeping_full_repack_period"
,
default:
50
,
null:
false
t
.
integer
"housekeeping_full_repack_period"
,
default:
50
,
null:
false
t
.
integer
"housekeeping_gc_period"
,
default:
200
,
null:
false
t
.
integer
"housekeeping_gc_period"
,
default:
200
,
null:
false
t
.
boolean
"sidekiq_throttling_enabled"
,
default:
false
t
.
string
"sidekiq_throttling_queues"
t
.
decimal
"sidekiq_throttling_factor"
t
.
boolean
"html_emails_enabled"
,
default:
true
t
.
boolean
"html_emails_enabled"
,
default:
true
t
.
string
"plantuml_url"
t
.
string
"plantuml_url"
t
.
boolean
"plantuml_enabled"
t
.
boolean
"plantuml_enabled"
t
.
integer
"max_pages_size"
,
default:
100
,
null:
false
end
end
create_table
"audit_events"
,
force: :cascade
do
|
t
|
create_table
"audit_events"
,
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