]> source.dussan.org Git - redmine.git/commitdiff
Fixed that rake db:create fails with JRuby (#15218).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Nov 2013 10:33:35 +0000 (10:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Nov 2013 10:33:35 +0000 (10:33 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12261 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/ci.rake
lib/tasks/jdbc.rake [deleted file]

index 1a0157440ba48c69fe9642798020423847da9a24..d30e9fb0a73ddd7b2c2453aefed59465bcff31e6 100644 (file)
@@ -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 (file)
index 289b3d9..0000000
+++ /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