From 4fd54aabc574f9f7afb2f10960e033af1cb3275b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 30 May 2007 08:08:59 +0000 Subject: - Patch #115267 by drewish, dopry et al: simplified file uploads code, improved file API, centralized file validation, implemented quotas and fixed file previews. --- modules/upload/upload.schema | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/upload/upload.schema (limited to 'modules/upload/upload.schema') 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 @@ + 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; +} + -- cgit v1.2.3