-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathencoding_com.install
More file actions
executable file
·59 lines (55 loc) · 1.57 KB
/
encoding_com.install
File metadata and controls
executable file
·59 lines (55 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
// $Id$
function encoding_com_schema() {
$schema['encoding_com_video_encodings'] = array(
'description' => t('Details of video files uploaded to Encoding.com'),
'fields' => array(
'encoding_id' => array(
'description' => t('ID of the resulting video encoding in Encoding.com'),
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'video_id' => array(
'description' => t('ID of the original video in Encoding.com'),
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'extname' => array(
'description' => t('Extension of the resulting video file'),
'type' => 'varchar',
'not null' => TRUE,
'length' => 255,
),
'status' => array(
'description' => t('Status of the transcoding'),
'type' => 'varchar',
'not null' => TRUE,
'length' => 10,
),
'width' => array(
'description' => t('Width of the resulting video'),
'type' => 'int',
'not null' => TRUE,
),
'height' => array(
'description' => t('Height of the resulting video'),
'type' => 'int',
'not null' => TRUE,
),
),
'indexes' => array(
'video_id' => array('video_id'),
'status' => array('status'),
),
'primary key' => array('encoding_id'),
);
return $schema;
}
function encoding_com_install() {
drupal_install_schema('encoding_com_video_encodings');
}
function encoding_com_uninstall() {
drupal_uninstall_schema('encoding_com_video_encodings');
}