summaryrefslogtreecommitdiff
path: root/modules/file/file.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-04 15:40:52 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-04 15:40:52 +0000
commit9502260ecf33a4b345794eea2d0b6e6dff5dbd74 (patch)
tree26612164dfc6fef6089a6774df81e6dc3157887d /modules/file/file.install
parent47326c49cbac1765a804c7c2166244148dc52401 (diff)
downloadbrdo-9502260ecf33a4b345794eea2d0b6e6dff5dbd74.tar.gz
brdo-9502260ecf33a4b345794eea2d0b6e6dff5dbd74.tar.bz2
- Patch #902264 by Damien Tournoud: move hook_field_schema() to .install files so we can get the upgrade path to work.
Diffstat (limited to 'modules/file/file.install')
-rw-r--r--modules/file/file.install32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/file/file.install b/modules/file/file.install
index c92068e98..fdf908805 100644
--- a/modules/file/file.install
+++ b/modules/file/file.install
@@ -7,6 +7,38 @@
*/
/**
+ * Implements hook_field_schema().
+ */
+function file_field_schema($field) {
+ return array(
+ 'columns' => array(
+ 'fid' => array(
+ 'description' => 'The {files}.fid being referenced in this field.',
+ 'type' => 'int',
+ 'not null' => FALSE,
+ 'unsigned' => TRUE,
+ ),
+ 'display' => array(
+ 'description' => 'Flag to control whether this file should be displayed when viewing content.',
+ 'type' => 'int',
+ 'size' => 'tiny',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'default' => 1,
+ ),
+ 'description' => array(
+ 'description' => 'A description of the file.',
+ 'type' => 'text',
+ 'not null' => FALSE,
+ ),
+ ),
+ 'indexes' => array(
+ 'fid' => array('fid'),
+ ),
+ );
+}
+
+/**
* Implements hook_requirements().
*
* Display information about getting upload progress bars working.