You are here

function opigno_quiz_app_update_7102 in Opigno Quiz App 7

File

./opigno_quiz_app.install, line 645
Defines module install logic.

Code

function opigno_quiz_app_update_7102($sandbox) {
  $schema_opigno_quiz_app_course_latest_viewed = array(
    'fields' => array(
      'course_nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'quiz_nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
      ),
      'result_id' => array(
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
      ),
    ),
    'primary key' => array(
      'course_nid',
      'uid',
    ),
  );
  db_create_table('opigno_quiz_app_course_latest_viewed', $schema_opigno_quiz_app_course_latest_viewed);
}