]> source.dussan.org Git - redmine.git/commitdiff
Fix deprecation warning for db:structure:dump in db:migrate when using sql schema...
authorGo MAEDA <maeda@farend.jp>
Wed, 1 Feb 2023 07:53:50 +0000 (07:53 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 1 Feb 2023 07:53:50 +0000 (07:53 +0000)
Contributed by Dmitry Makurin.

git-svn-id: https://svn.redmine.org/redmine/trunk@22086 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/redmine.rake

index d21f52d2bafeaf432cc5cc4cb22f736a63024573..b3c2f0122774e628611aaba47cca6389cb5b4c4b 100644 (file)
@@ -153,12 +153,7 @@ DESC
         abort "Plugin #{name} was not found."
       end
 
-      case ActiveRecord::Base.schema_format
-      when :ruby
-        Rake::Task["db:schema:dump"].invoke
-      when :sql
-        Rake::Task["db:structure:dump"].invoke
-      end
+      Rake::Task["db:schema:dump"].invoke
     end
 
     desc 'Copies plugins assets into the public directory.'