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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
46cc3b22
Commit
46cc3b22
authored
Mar 13, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mysql limits to db during setup
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c4263dfb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
lib/tasks/gitlab/setup.rake
lib/tasks/gitlab/setup.rake
+8
-0
lib/tasks/migrate/add_limits_mysql.rake
lib/tasks/migrate/add_limits_mysql.rake
+1
-0
No files found.
lib/tasks/gitlab/setup.rake
View file @
46cc3b22
...
...
@@ -15,6 +15,14 @@ namespace :gitlab do
end
Rake
::
Task
[
"db:setup"
].
invoke
config
=
YAML
.
load_file
(
File
.
join
(
Rails
.
root
,
'config'
,
'database.yml'
))[
Rails
.
env
]
success
=
case
config
[
"adapter"
]
when
/^mysql/
then
Rake
::
Task
[
"add_limits_mysql"
].
invoke
when
"postgresql"
then
end
Rake
::
Task
[
"db:seed_fu"
].
invoke
rescue
Gitlab
::
TaskAbortedByUserError
puts
"Quitting..."
.
red
...
...
lib/tasks/migrate/add_limits_mysql.rake
View file @
46cc3b22
...
...
@@ -9,5 +9,6 @@ class LimitsToMysql < ActiveRecord::Migration
change_column
:merge_request_diffs
,
:st_commits
,
:text
,
limit:
2147483647
change_column
:merge_request_diffs
,
:st_diffs
,
:text
,
limit:
2147483647
change_column
:snippets
,
:content
,
:text
,
limit:
2147483647
change_column
:notes
,
:st_diff
,
:text
,
limit:
2147483647
end
end
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