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
f18bdbb1
Commit
f18bdbb1
authored
Aug 08, 2016
by
Timothy Andrew
Committed by
Alfredo Sumaran
Aug 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add migration downtime flags/notices.
parent
4911f5af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
db/migrate/20160721042141_add_column_user_id_to_protected_branches_access_levels.rb
...add_column_user_id_to_protected_branches_access_levels.rb
+3
-0
db/migrate/20160721043623_allow_nulls_for_protected_branch_access_levels.rb
...1043623_allow_nulls_for_protected_branch_access_levels.rb
+2
-0
No files found.
db/migrate/20160721042141_add_column_user_id_to_protected_branches_access_levels.rb
View file @
f18bdbb1
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
class
AddColumnUserIdToProtectedBranchesAccessLevels
<
ActiveRecord
::
Migration
class
AddColumnUserIdToProtectedBranchesAccessLevels
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
true
DOWNTIME_REASON
=
"This migrations adds two indexes, and so requires downtime."
# When using the methods "add_concurrent_index" or "add_column_with_default"
# When using the methods "add_concurrent_index" or "add_column_with_default"
# you must disable the use of transactions as these methods can not run in an
# you must disable the use of transactions as these methods can not run in an
# existing transaction. When using "add_concurrent_index" make sure that this
# existing transaction. When using "add_concurrent_index" make sure that this
...
...
db/migrate/20160721043623_allow_nulls_for_protected_branch_access_levels.rb
View file @
f18bdbb1
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
class
AllowNullsForProtectedBranchAccessLevels
<
ActiveRecord
::
Migration
class
AllowNullsForProtectedBranchAccessLevels
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
# When using the methods "add_concurrent_index" or "add_column_with_default"
# When using the methods "add_concurrent_index" or "add_column_with_default"
# you must disable the use of transactions as these methods can not run in an
# you must disable the use of transactions as these methods can not run in an
# existing transaction. When using "add_concurrent_index" make sure that this
# existing transaction. When using "add_concurrent_index" make sure that this
...
...
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