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:

/**
 * 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' => '',
  );
}

Comments

deciphered’s picture

Hi jshprentz,

Thanks, haven't used the Schema module personally but will look into it shortly.

Cheers,
Deciphered.

deciphered’s picture

Status: Active » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.