diff options
Diffstat (limited to 'modules/upload/upload.install')
-rw-r--r-- | modules/upload/upload.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/upload/upload.install b/modules/upload/upload.install index 1c07a190d..3e6eb367d 100644 --- a/modules/upload/upload.install +++ b/modules/upload/upload.install @@ -16,3 +16,23 @@ function upload_uninstall() { // Remove tables. drupal_uninstall_schema('upload'); } + +/** + * Implementation of hook_schema(). + */ +function upload_schema() { + $schema['upload'] = array( + 'fields' => array( + 'fid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), + 'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), + 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), + 'description' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), + 'list' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny') + ), + 'primary key' => array('fid', 'vid'), + 'indexes' => array('vid' => array('vid'), 'nid' => array('nid')), + ); + + return $schema; +} + |