Patch #29424

Convert migration file from 4.2 to 5.2

Added by Enziin System 6 months ago. Updated 6 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Database
Target version:-

Description

I recently saw Redmine use Rails 5.2.1, which is a good thing.

However, upgrading to Rails 5.2.1 does not simply add it to the Gemfile.

I have migrated the migration files from 4.2 to 5.2, please consider the patch.

The reason for the change: The default id of Rails 3-4 is int, which allows for a maximum of 4.2 billion items.

This is not a big number when using Redmine in large-scale applications.

Need to replace with bigint(20) in id and foreign key.

I tested the patch and confirmed that Redmine works normally after the upgrade.

convert_db.diff Magnifier (195 KB) Enziin System, 2018-08-22 13:37

db.zip (116 KB) Enziin System, 2018-08-22 13:44


Related issues

Related to Redmine - Feature #23630: Migrate to Rails 5.2 Closed

History

#1 Updated by Enziin System 6 months ago

And this is an attach file raw source code in db.

#2 Updated by Marius BALTEANU 5 months ago

#3 Updated by Marius BALTEANU 5 months ago

#4 Updated by Marius BALTEANU 5 months ago

Also available in: Atom PDF