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
cd612395
Commit
cd612395
authored
Apr 16, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the adapter check to the migration
parent
43e77099
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
limits_to_mysql.rb
db/migrate/limits_to_mysql.rb
+1
-1
setup.rake
lib/tasks/gitlab/setup.rake
+1
-8
No files found.
db/migrate/limits_to_mysql.rb
View file @
cd612395
class
LimitsToMysql
<
ActiveRecord
::
Migration
def
up
return
unless
ActiveRecord
::
Base
.
configurations
[
Rails
.
env
][
'adapter'
]
=
=
'mysql2'
return
unless
ActiveRecord
::
Base
.
configurations
[
Rails
.
env
][
'adapter'
]
=
~
/^mysql/
change_column
:merge_request_diffs
,
:st_commits
,
:text
,
limit:
2147483647
change_column
:merge_request_diffs
,
:st_diffs
,
:text
,
limit:
2147483647
...
...
lib/tasks/gitlab/setup.rake
View file @
cd612395
...
...
@@ -15,14 +15,7 @@ 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
[
"add_limits_mysql"
].
invoke
Rake
::
Task
[
"db:seed_fu"
].
invoke
rescue
Gitlab
::
TaskAbortedByUserError
puts
"Quitting..."
.
red
...
...
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