You are here

function video_zencoder_update_6401 in Video 6.4

Same name and namespace in other branches
  1. 6.5 plugins/video_zencoder/video_zencoder.install \video_zencoder_update_6401()

Update 6401 Adding new dimentaion row to the table

Return value

<type>

File

plugins/video_zencoder/video_zencoder.install, line 164
Provides installation functions for video_s3.module.

Code

function video_zencoder_update_6401() {
  $ret = array();

  // set settings column to accept larger values
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql('ALTER TABLE {video_zencoder} ADD dimensions VARCHAR( 255 ) NULL NULL AFTER filesize');
      break;
    case 'pgsql':
      db_add_column($ret, 'video_zencoder', 'dimensions', 'VARCHAR', array(
        'null' => TRUE,
      ));
      break;
  }
  return $ret;
}