Project

General

Profile

Actions

Defect #38199

closed

Fix deprecation warning for db:structure:dump in db:migrate when using sql schema format

Added by Dmitry Makurin almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Running db:migrate using sql schema format shows the deprecation warning:

DEPRECATION WARNING: Using `bin/rails db:structure:dump` is deprecated and will be removed in Rails 7.0. Configure the format using `config.active_record.schema_format = :sql` to use `structure.sql` and run `bin/rails db:schema:dump` instead. (called from block (3 levels) in <top (required)> at lib/tasks/redmine.rake:160)

Redmine invokes db:schema/structures:dump to dump plugins migrations.


Files

31485.patch (538 Bytes) 31485.patch Go MAEDA, 2023-01-20 03:46
38199_v2.patch (697 Bytes) 38199_v2.patch Dmitry Makurin , 2023-01-20 16:19

Related issues

Related to Redmine - Patch #31485: Add support for :sql ActiveRecord::Base.schema_format in redmine:plugins:migrateClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF