From 60317acf25be316da567de59c260480edaadac29 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 1 Feb 2023 07:53:50 +0000 Subject: [PATCH] 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 --- lib/tasks/redmine.rake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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.' -- 2.39.5