summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-01 09:34:29 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-01 09:34:29 +0000
commit3dc836a945b405c5fed85cf91dc6f994883d47b0 (patch)
treea72101b7e292078343f26ea9ca4a14c2f61f44d7 /lib/tasks
parentf76a85dc5a92a5290659e3d6a36ecd630c740ba3 (diff)
downloadredmine-3dc836a945b405c5fed85cf91dc6f994883d47b0.tar.gz
redmine-3dc836a945b405c5fed85cf91dc6f994883d47b0.zip
Add support for :sql ActiveRecord::Base.schema_format in redmine:plugins:migrate (#31485).
Patch by Kouhei Sutou. git-svn-id: http://svn.redmine.org/redmine/trunk@18212 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/redmine.rake7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake
index e0067e37d..76752cc91 100644
--- a/lib/tasks/redmine.rake
+++ b/lib/tasks/redmine.rake
@@ -137,7 +137,12 @@ DESC
abort "Plugin #{name} was not found."
end
- Rake::Task["db:schema:dump"].invoke
+ case ActiveRecord::Base.schema_format
+ when :ruby
+ Rake::Task["db:schema:dump"].invoke
+ when :sql
+ Rake::Task["db:structure:dump"].invoke
+ end
end
desc 'Copies plugins assets into the public directory.'