Skip to content

Column audited_changes too small and a small instructions suggestion #2

Description

In our redmine 4.1.1 instance we've noticed if the issue is too long, redmine will throw a 500 error because the audited_changes column is too small.
I fixed it with the SQL Command ALTER TABLE audits MODIFY COLUMN audited_changes LONGTEXT; it changes the type of the column from TEXT (65,535 bytes = 64 KiB) to LONGTEXT (4,294,967,295 bytes = 4 GiB) so there will be nearly no limit to issue lenght.

Also you really should change the command rails generate audited:install --audited-changes-column-type jsonb in the "How to use" description because it broke our MySQL database because there was no jsonb support, you could highlight it like:
For MySQL Databases:
rails generate audited:install

For PostgreSQL Databases:
rails generate audited:install --audited-changes-column-type jsonb

grafik

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions