webmaster@1: 'Stores information for files uploaded via the blogapi.', webmaster@9: 'fields' => array( webmaster@9: 'fid' => array( franck@19: 'description' => 'Primary Key: Unique file ID.', webmaster@9: 'type' => 'serial', webmaster@9: ), webmaster@9: 'uid' => array( franck@19: 'description' => 'The {users}.uid of the user who is associated with the file.', webmaster@9: 'type' => 'int', webmaster@9: 'unsigned' => TRUE, webmaster@9: 'not null' => TRUE, webmaster@9: 'default' => 0), webmaster@9: 'filepath' => array( franck@19: 'description' => 'Path of the file relative to Drupal root.', webmaster@9: 'type' => 'varchar', webmaster@9: 'length' => 255, webmaster@9: 'not null' => TRUE, webmaster@9: 'default' => ''), webmaster@9: 'filesize' => array( franck@19: 'description' => 'The size of the file in bytes.', webmaster@9: 'type' => 'int', webmaster@9: 'unsigned' => TRUE, webmaster@9: 'not null' => TRUE, webmaster@9: 'default' => 0), webmaster@9: ), webmaster@9: 'primary key' => array('fid'), webmaster@9: 'indexes' => array( webmaster@9: 'uid' => array('uid'), webmaster@9: ), webmaster@9: ); webmaster@9: webmaster@9: return $schema; webmaster@9: } webmaster@1: webmaster@1: /** webmaster@1: * @defgroup updates-5.x-to-6.x Blog API updates from 5.x to 6.x webmaster@1: * @{ webmaster@1: */ webmaster@1: webmaster@1: /** webmaster@1: * Inform users about the new permission. webmaster@1: */ webmaster@1: function blogapi_update_6000() { webmaster@1: drupal_set_message("Blog API module does not depend on blog module's permissions anymore, but provides its own 'administer content with blog api' permission instead. Until 'module-blogapi')) .'">this permission is assigned to at least one user role, only the site administrator will be able to use Blog API features.'); webmaster@1: return array(); webmaster@1: } webmaster@1: webmaster@9: webmaster@9: /** webmaster@9: * Add blogapi_files table to enable size restriction for BlogAPI file uploads. webmaster@9: * webmaster@9: * This table was introduced in Drupal 6.4. webmaster@9: */ webmaster@9: function blogapi_update_6001() { webmaster@9: $schema['blogapi_files'] = array( franck@19: 'description' => 'Stores information for files uploaded via the blogapi.', webmaster@9: 'fields' => array( webmaster@9: 'fid' => array( franck@19: 'description' => 'Primary Key: Unique file ID.', webmaster@9: 'type' => 'serial', webmaster@9: ), webmaster@9: 'uid' => array( franck@19: 'description' => 'The {users}.uid of the user who is associated with the file.', webmaster@9: 'type' => 'int', webmaster@9: 'unsigned' => TRUE, webmaster@9: 'not null' => TRUE, webmaster@9: 'default' => 0), webmaster@9: 'filepath' => array( franck@19: 'description' => 'Path of the file relative to Drupal root.', webmaster@9: 'type' => 'varchar', webmaster@9: 'length' => 255, webmaster@9: 'not null' => TRUE, webmaster@9: 'default' => ''), webmaster@9: 'filesize' => array( franck@19: 'description' => 'The size of the file in bytes.', webmaster@9: 'type' => 'int', webmaster@9: 'unsigned' => TRUE, webmaster@9: 'not null' => TRUE, webmaster@9: 'default' => 0), webmaster@9: ), webmaster@9: 'primary key' => array('fid'), webmaster@9: 'indexes' => array( webmaster@9: 'uid' => array('uid'), webmaster@9: ), webmaster@9: ); webmaster@9: webmaster@9: $ret = array(); webmaster@9: webmaster@9: if (!db_table_exists('blogapi_files')) { webmaster@9: db_create_table($ret, 'blogapi_files', $schema['blogapi_files']); webmaster@9: } webmaster@9: return $ret; webmaster@9: } webmaster@9: webmaster@1: /** webmaster@1: * @} End of "defgroup updates-5.x-to-6.x" webmaster@1: * The next series of updates should start at 7000. webmaster@1: */ webmaster@9: