Install schema error.

tstermitz - July 16, 2009 - 15:58
Project:Fast Gallery
Version:6.x-4.0-beta7
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

Maybe just a warning flag, but the gid default should be 0 not '0'. Merely change one line to be:

        'default' => 0,

Below is the present code:

  $schema['fast_gallery_exif'] = array (
    'description' => t('Stores EXIF data for images'),
    'fields' => array (
      'eid' => array (
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => t('EXIF ID of the field, defined by the database'),
        'no export' => TRUE,
      ),
      'gid' => array (
        'type' => 'int',
        'default' => '0',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'size' => 'medium',
        'description' => t('ID of the image, defined by the database'),
      ),
      'field' => array (
        'type' => 'varchar',
        'length' => '255',
        'default' => '',
        'not null' => TRUE,
        'description' => t('Name of the EXIF Field'),
      ),
      'value' => array (
        'type' => 'varchar',
        'length' => '255',
        'default' => '',
        'not null' => TRUE,
        'description' => t('Value of the EXIF field'),
      ),
    ),
    'primary key' => array (
      'eid'
    ),
  );

#1

fernao - July 16, 2009 - 16:36

Here goes the patch of what you've told

AttachmentSize
fast_gallery-schema.patch 341 bytes

#2

rapsli - July 16, 2009 - 16:49
Status:active» needs review

#3

rapsli - July 17, 2009 - 20:25
Status:needs review» active

commited to head

 
 

Drupal is a registered trademark of Dries Buytaert.