summaryrefslogtreecommitdiffstats
path: root/lib/tasks/redmine.rake
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-02-01 07:53:50 +0000
committerGo MAEDA <maeda@farend.jp>2023-02-01 07:53:50 +0000
commit60317acf25be316da567de59c260480edaadac29 (patch)
treecc1638dd1f63c797982623d0ae2e095fed2a8317 /lib/tasks/redmine.rake
parent109b91145767726b4e99e7a36e4bf70f8d562d1c (diff)
downloadredmine-60317acf25be316da567de59c260480edaadac29.tar.gz
redmine-60317acf25be316da567de59c260480edaadac29.zip
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
Diffstat (limited to 'lib/tasks/redmine.rake')
-rw-r--r--lib/tasks/redmine.rake7
1 files changed, 1 insertions, 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.'