summaryrefslogtreecommitdiff
path: root/modules/upload/upload.schema
diff options
context:
space:
mode:
Diffstat (limited to 'modules/upload/upload.schema')
-rw-r--r--modules/upload/upload.schema19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/upload/upload.schema b/modules/upload/upload.schema
new file mode 100644
index 000000000..09843b58f
--- /dev/null
+++ b/modules/upload/upload.schema
@@ -0,0 +1,19 @@
+<?php
+// $Id$
+
+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;
+}
+