Commit a9ce68dc authored by jplang's avatar jplang
Browse files

Fixed that rake db:create fails with JRuby (#15218).

git-svn-id: https://svn.redmine.org/redmine/trunk@12261 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0f2ca7e6
......@@ -13,10 +13,7 @@ namespace :ci do
task :setup do
Rake::Task["tmp:clear"].invoke
Rake::Task["log:clear"].invoke
database = ENV['DATABASE_ADAPTER']
unless Object.const_defined?(:JRUBY_VERSION) && database =~ /sqlite3/
Rake::Task["db:create:all"].invoke
end
Rake::Task["db:create:all"].invoke
Rake::Task["db:migrate"].invoke
Rake::Task["db:schema:dump"].invoke
Rake::Task["test:scm:setup:all"].invoke
......
# This file was generated by the "jdbc" generator, which is provided
# by the activerecord-jdbc-adapter gem.
#
# This file allows you to use Rails' various db:* tasks with JDBC.
if defined?(JRUBY_VERSION)
require 'jdbc_adapter'
require 'jdbc_adapter/rake_tasks'
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment