You are here

function video_update_7203 in Video 7.2

Alter video_queue table to add video duration.

File

./video.install, line 523
Provides installation schema for video.module @author Heshan Wanigasooriya <heshan@heidisoft.com>

Code

function video_update_7203(&$sandbox) {
  $ret = array();

  // Check because D6 installs may already have added this.
  if (db_field_exists('video_queue', 'duration')) {
    db_change_field('video_queue', 'duration', 'duration', array(
      'type' => 'varchar',
      'length' => 32,
      'not null' => FALSE,
      'description' => 'Stores the video duration in Sec.',
    ));
  }
  return $ret;
}