You are here

function quiz_update_7409 in Quiz 7.5

Same name and namespace in other branches
  1. 7.6 quiz.install \quiz_update_7409()
  2. 7.4 quiz.install \quiz_update_7409()

Adding userpoints tid column.

File

./quiz.install, line 840
Quiz install schema for installing the quiz module.

Code

function quiz_update_7409(&$sandbox) {
  $table = 'quiz_node_properties';
  $schema = drupal_get_schema_unprocessed('quiz', $table);
  foreach (array(
    'userpoints_tid',
  ) as $field) {
    db_add_field($table, $field, $schema['fields'][$field]);
  }
  return t('Adding userpoints tid column to quiz_node_properties');
}