You are here

function makemeeting_update_7202 in Make Meeting Scheduler 7.2

Add timezone column to fields.

File

./makemeeting.install, line 181
Makemeeting installation schemas

Code

function makemeeting_update_7202() {
  $fields = makemeeting_get_makemeeting_fields();
  $schema = makemeeting_field_schema(NULL);
  $spec = $schema['columns']['timezone'];
  foreach ($fields as $field) {
    $table_prefixes = [
      _field_sql_storage_tablename($field),
      _field_sql_storage_revision_tablename($field),
    ];
    foreach ($table_prefixes as $table) {
      $field_name = $field['field_name'];
      $column = $field_name . '_timezone';
      db_add_field($table, $column, $spec);
    }
  }
  return t('Timezone column added to makemeeting forms.');
}