function opigno_group_manager_install in Opigno group manager 8
Same name and namespace in other branches
- 3.x opigno_group_manager.install \opigno_group_manager_install()
File
- ./
opigno_group_manager.install, line 11 - Opigno group manager install/update functionality.
Code
function opigno_group_manager_install() {
$definition = \Drupal::entityTypeManager()
->getDefinition('opigno_group_link');
// Make field "required_activities" value to be null.
// @todo: add this settings to BaseFieldDefinition::create() for this field.
$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,
]);
}
}