Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## ['UNRELEASED']
## [UNRELEASED]

### Fixed

- Increased the maximum length of the language column to support longer locale codes

## [1.22.1] - 2025-10-10

Expand Down
6 changes: 5 additions & 1 deletion inc/labeltranslation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function installBaseData(Migration $migration, $version)
`id` INT {$default_key_sign} NOT NULL auto_increment,
`itemtype` VARCHAR(30) NOT NULL,
`items_id` INT {$default_key_sign} NOT NULL,
`language` VARCHAR(5) NOT NULL,
`language` VARCHAR(10) NOT NULL,
`label` VARCHAR(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `itemtype` (`itemtype`),
Expand All @@ -90,6 +90,10 @@ public static function installBaseData(Migration $migration, $version)
$migration->addKey($table, 'items_id');
}

if ($DB->fieldExists($table, 'language')) {
$migration->changeField($table, 'language', 'language', "VARCHAR(10) NOT NULL");
}

return true;
}

Expand Down