summaryrefslogtreecommitdiff
path: root/modules/upload/upload.schema
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-30 08:08:59 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-30 08:08:59 +0000
commit4fd54aabc574f9f7afb2f10960e033af1cb3275b (patch)
tree914ed89f4ddee8160b501faa30e17a61dc0a78b1 /modules/upload/upload.schema
parent35687098037816e791b915269e035b080fc90c77 (diff)
downloadbrdo-4fd54aabc574f9f7afb2f10960e033af1cb3275b.tar.gz
brdo-4fd54aabc574f9f7afb2f10960e033af1cb3275b.tar.bz2
- Patch #115267 by drewish, dopry et al: simplified file uploads code, improved file API, centralized file validation, implemented quotas and fixed file previews.
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;
+}
+