From 6ccdee7713c482e1170355ccd2fce9508732a739 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 Nov 2013 10:33:35 +0000 Subject: [PATCH] Fixed that rake db:create fails with JRuby (#15218). git-svn-id: http://svn.redmine.org/redmine/trunk@12261 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/ci.rake | 5 +---- lib/tasks/jdbc.rake | 8 -------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 lib/tasks/jdbc.rake diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 1a0157440..d30e9fb0a 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -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 diff --git a/lib/tasks/jdbc.rake b/lib/tasks/jdbc.rake deleted file mode 100644 index 289b3d94c..000000000 --- a/lib/tasks/jdbc.rake +++ /dev/null @@ -1,8 +0,0 @@ -# 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