You are here

function opigno_module_update_8035 in Opigno module 8

Add extra field to DB to save training ID.

File

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

Code

function opigno_module_update_8035() {
  $spec = array(
    'type' => 'int',
    'size' => 'normal',
    'description' => "Training ID",
  );
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->addField('opigno_module_relationship', 'group_id', $spec);
}