You are here

function opigno_module_update_8036 in Opigno module 8

Change length of NAME column in DB for opigno_activity entity.

File

./opigno_module.install, line 1555
Opigno module app install/update functionality.

Code

function opigno_module_update_8036() {
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->changeField('opigno_activity_field_data', 'name', 'name', [
    'type' => 'varchar',
    'length' => 60,
    'not null' => FALSE,
  ]);
  $schema
    ->changeField('opigno_activity_field_revision', 'name', 'name', [
    'type' => 'varchar',
    'length' => 60,
    'not null' => FALSE,
  ]);
}