Project

General

Profile

Defect #38199 » 38199_v2.patch

Dmitry Makurin , 2023-01-20 16:19

View differences:

lib/tasks/redmine.rake
153 153
        abort "Plugin #{name} was not found."
154 154
      end
155 155

  
156
      case ActiveRecord::Base.schema_format
157
      when :ruby
156
      if Rails.gem_version < Gem::Version.new(7.0)
157
        case ActiveRecord::Base.schema_format
158
        when :ruby
159
          Rake::Task["db:schema:dump"].invoke
160
        when :sql
161
          Rake::Task["db:structure:dump"].invoke
162
        end
163
      else
158 164
        Rake::Task["db:schema:dump"].invoke
159
      when :sql
160
        Rake::Task["db:structure:dump"].invoke
161 165
      end
162 166
    end
163 167

  
(2-2/2)