function opigno_group_manager_update_8004 in Opigno group manager 8
Update required activities field. Set default value to NULL.
File
- ./
opigno_group_manager.install, line 61 - Opigno group manager install/update functionality.
Code
function opigno_group_manager_update_8004() {
$definition = \Drupal::entityTypeManager()
->getDefinition('opigno_group_link');
$schema = \Drupal::database()
->schema();
if ($schema
->fieldExists($definition
->getBaseTable(), 'required_activities')) {
$schema
->changeField($definition
->getBaseTable(), 'required_activities', 'required_activities', [
'type' => 'varchar',
'length' => 8191,
'not null' => FALSE,
]);
}
}