/[drupal]/contributions/modules/fast_gallery/fast_gallery.install
ViewVC logotype

Diff of /contributions/modules/fast_gallery/fast_gallery.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.32, Mon Nov 9 20:11:08 2009 UTC revision 1.33, Tue Nov 10 18:20:18 2009 UTC
# Line 24  function fast_gallery_schema() { Line 24  function fast_gallery_schema() {
24          'not null' => TRUE,          'not null' => TRUE,
25          'default' => 0,          'default' => 0,
26        ),        ),
27          'runid' => array(
28            'description' => 'Each time the update scriped is run we give an id -> easy to delete old entries',
29            'type' => 'int',
30            'unsigned' => TRUE,
31            'not null' => TRUE,
32            'default' => 0,
33          ),
34      ),      ),
35      'foreign keys' => array(      'foreign keys' => array(
36        'fid' => array('file' => 'fid'),        'fid' => array('file' => 'fid'),
# Line 32  function fast_gallery_schema() { Line 39  function fast_gallery_schema() {
39      'primary key' => array('fid', 'foid'),      'primary key' => array('fid', 'foid'),
40    );    );
41    
42    
43    $schema['fast_gallery_hierarchy'] = array(    $schema['fast_gallery_hierarchy'] = array(
44      'description' => 'store the hierarchy of folders',      'description' => 'store the hierarchy of folders',
45      'fields' => array(      'fields' => array(
# Line 60  function fast_gallery_schema() { Line 68  function fast_gallery_schema() {
68    );    );
69    
70    return $schema;    return $schema;
71    }
72    
73    /**
74     * Add runid to {fast_gallery}
75     */
76    function fast_gallery_update_7001() {
77        db_add_field('fast_gallery', 'runid', array(
78            'description' => 'Each time the update scriped is run we give an id -> easy to delete old entries',
79            'type' => 'int',
80            'unsigned' => TRUE,
81            'not null' => TRUE,
82            'default' => 0,
83        ));
84  }  }

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.2