FileField Paths does not report schema change to Files table.
jshprentz - May 9, 2009 - 00:57
| Project: | FileField Paths |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The Schema module reports:
Tables for which the schema and database are different:
- system
- files
- origname: unexpected column in database
The origname column is added by filefield_paths.install.
Recommend adding the following function to filefield_paths.install:
<?php
/**
* Implementation of hook_schema_alter().
*
* @param $schema
* The system-wide schema
*/
function filefield_paths_schema_alter(&$schema) {
$schema['files']['fields']['origname'] = array(
'description' => 'Original name of the file.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
);
}
?>
#1
Hi jshprentz,
Thanks, haven't used the Schema module personally but will look into it shortly.
Cheers,
Deciphered.
#2
Hi jshprentz,
Fixed and committed to DRUPAL-6--1.
Unfortunately I failed on the commit message and forgot to give you due credit. CHANGELOG.txt will be updated in the next commit with due credit. Sorry, my bad.
Thanks again,
Deciphered.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.