aboutsummaryrefslogtreecommitdiff
path: root/video.install
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-06 23:22:38 +0530
committerHeshan <heshan@heidisoft.com>2011-03-06 23:22:38 +0530
commit7235ebc06e881ebefe1d2c45a3b0f5304e26b936 (patch)
tree43a58a1a988ad29a03fde22e638f234564cfc275 /video.install
parentf1b598ecbcc28304aa33d98d6c42ab29af1c2b42 (diff)
downloadvideo-7235ebc06e881ebefe1d2c45a3b0f5304e26b936.tar.gz
video-7235ebc06e881ebefe1d2c45a3b0f5304e26b936.tar.bz2
Completed general video upload with Video field and auto thumbnails creation using FFMPEG
Diffstat (limited to 'video.install')
-rw-r--r--video.install39
1 files changed, 35 insertions, 4 deletions
diff --git a/video.install b/video.install
index 3250513..828496b 100644
--- a/video.install
+++ b/video.install
@@ -61,9 +61,10 @@ function video_schema() {
'default' => 0,
),
'data' => array(
- 'type' => 'text',
+ 'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
+ 'serialize' => TRUE,
'description' => 'A serialized array of converted files.
Use of this field is discouraged and it will likely disappear in a future version of Drupal.',
),
@@ -98,10 +99,11 @@ function video_schema() {
'translatable' => TRUE,
),
'settings' => array(
- 'type' => 'text',
- 'size' => 'medium',
+ 'type' => 'blob',
+ 'not null' => FALSE,
+ 'size' => 'big',
'serialize' => TRUE,
- 'description' => 'Serialized player settings that do not warrant a dedicated column.
+ 'description' => 'Serialized preset settings that do not warrant a dedicated column.
Use of this field is discouraged and it will likely disappear in a future version of Drupal.',
),
),
@@ -110,6 +112,35 @@ function video_schema() {
),
'primary key' => array('pid'),
);
+ // video thumbnails
+ $schema['video_thumbnails'] = array(
+ 'description' => 'The video thumbnails table.',
+ 'fields' => array(
+ 'vid' => array(
+ 'type' => 'int',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'description' => 'Foreign Key {video_files}.fid.',
+ ),
+ 'thumbnails' => array(
+ 'type' => 'blob',
+ 'not null' => FALSE,
+ 'size' => 'big',
+ 'serialize' => TRUE,
+ 'description' => 'Serialized array of thumbnails data.
+ Use of this field is discouraged and it will likely disappear in a future version of Drupal.',
+ ),
+ ),
+ 'indexes' => array(
+ 'thumbnail' => array('vid'),
+ ),
+ 'foreign keys' => array(
+ 'thumbnails' => array(
+ 'table' => 'video_files',
+ 'columns' => array('vid' => 'vid'),
+ ),
+ ),
+ );
return $schema;
}