| 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'), |
| 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( |
| 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 |
} |
} |