Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If we have very long names of the modules, e.g. more than 50 characters (features naming convention for example) I get a PDO exception.
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'name' at row 1: INSERT INTO {l10n_update_project} (name, project_type, core, version, l10n_path, status) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5);
Comment | File | Size | Author |
---|---|---|---|
#7 | l10n_update-not_compatible_with_drupal_core_db_field_length-2559367-7-7.x.patch | 889 bytes | skek |
#2 | l10n_update-not_compatible_with_drupal_core_db_field_length-2559367-2-7.x.patch | 806 bytes | skek |
Comments
Comment #2
skek CreditAttribution: skek commentedFixing the length of the name field to be compatible with the Drupal module names (same as the system table).
Comment #3
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedThanks! Patch committed.
Comment #5
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedBackported to 7.x-1.x too.
Comment #7
skek CreditAttribution: skek commented@Sutharsan,
Thanks for applying the patch.
I realised that we also need to change the project field of "l10n_update_file" table.
Regards!
Comment #10
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedYou're right, thanks again.