function search_api_synonym_update_8001 in Search API Synonym 8
Change length of the field 'word'.
File
- ./
search_api_synonym.install, line 14 - Contains search_api_synonym.install.
Code
function search_api_synonym_update_8001() {
$spec = [
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
];
$schema = Database::getConnection()
->schema();
$schema
->changeField('search_api_synonym', 'word', 'word', $spec);
}