You are here

function filefield_meta_update_1 in FileField 6.3

File

filefield_meta/filefield_meta.install, line 98
FileField Meta: Add Video Support to File Field.

Code

function filefield_meta_update_1() {
  $ret = array();
  db_add_field($ret, 'filefield_meta', 'audio_format', array(
    'description' => 'The audio format.',
    'type' => 'varchar',
    'length' => 10,
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_field($ret, 'filefield_meta', 'audio_sample_rate', array(
    'description' => 'The sample rate of the audio.',
    'type' => 'int',
    'size' => 'medium',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field($ret, 'filefield_meta', 'audio_channel_mode', array(
    'description' => 'The number of channels in the audio, by name.',
    'type' => 'varchar',
    'length' => 10,
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_field($ret, 'filefield_meta', 'audio_bitrate', array(
    'description' => 'The audio bitrate.',
    'type' => 'float',
    'size' => 'medium',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field($ret, 'filefield_meta', 'audio_bitrate_mode', array(
    'description' => 'The kind of audio bitrate.',
    'type' => 'varchar',
    'length' => 4,
    'not null' => TRUE,
    'default' => '',
  ));
  return $ret;
}