From 9502260ecf33a4b345794eea2d0b6e6dff5dbd74 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 4 Sep 2010 15:40:52 +0000 Subject: - Patch #902264 by Damien Tournoud: move hook_field_schema() to .install files so we can get the upgrade path to work. --- modules/file/file.install | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'modules/file/file.install') 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 @@ -6,6 +6,38 @@ * Install, update and uninstall functions for File module. */ +/** + * 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(). * -- cgit v1.2.3