From: Go MAEDA Date: Wed, 1 Feb 2023 07:53:50 +0000 (+0000) Subject: Fix deprecation warning for db:structure:dump in db:migrate when using sql schema... X-Git-Tag: 5.1.0~254 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60317acf25be316da567de59c260480edaadac29;p=redmine.git Fix deprecation warning for db:structure:dump in db:migrate when using sql schema format (#38199). Contributed by Dmitry Makurin. git-svn-id: https://svn.redmine.org/redmine/trunk@22086 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake index d21f52d2b..b3c2f0122 100644 --- a/lib/tasks/redmine.rake +++ b/lib/tasks/redmine.rake @@ -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.'