This project is not covered by Drupal’s security advisory policy.
Warning: after updating a field max length with this module the features overview is broken
It seems that after updating the field max lenght with this module an unexpected error occurs when you are working with features : "ieldUpdateForbiddenException: field_sql_storage cannot change the schema for an existing field with data". I am currently investigating this issue.
If you have found this module you have probably created a field with a max_length that is no longer valid. You are either unable to store a value since it exceeds max_length, or perhaps you want to shorten the max_length to reduce database size? The field API in Drupal 7 does not allow you to change this property when data is already stored for a field. When trying to edit the max_length property in the admin interface you will encounter the following message:
There is data for this field in the database. The field settings can no longer be changed.
Or perhaps you encountered the following issue while adding or updating field values programatically:
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'X' at row X
There are multiple solutions here:
- Drop all your data and modify the field max_lenght. Just kidding, this is not an option
- Modifying the field tables manually in phpMyAdmin
- Creating an update hook that alters the field tables
- Installing this module and simply edit the max_length in the admin interface
- Installing this module and run the Drush command to modify the max_length
I will expand this module page with more information about step 3 since it is a valid option. As you might understand i prefer you just download and use this module :)
Other modules
I have searched for similar modules but have only found the ones that will add validation. If you feel this module should not exists because there is a better alternative please let me know.
Tested on D7 and MySQL
This module has been tested on Drupal 7 in combination with MySQL. It has not been tested on other databases such as MariaDB and PostgreSQL
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projectsObsolete
Use of this project is deprecated.- Project categories: Site structure
9 sites report using this module
- Created by ericmulder1980 on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

