| 1 |
<?php |
<?php |
| 2 |
// $Id: image.install,v 1.19 2009/01/18 00:31:35 sun Exp $ |
// $Id: image.install,v 1.20 2009/01/18 04:32:57 sun Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_schema(). |
* Implementation of hook_schema(). |
| 295 |
'not null' => TRUE, |
'not null' => TRUE, |
| 296 |
'default' => 0, |
'default' => 0, |
| 297 |
)); |
)); |
| 298 |
|
db_drop_primary_key($ret, 'image'); |
| 299 |
db_add_primary_key($ret, 'image', array('nid', 'image_size')); |
db_add_primary_key($ret, 'image', array('nid', 'image_size')); |
| 300 |
|
db_drop_index($ret, 'image', 'image_fid'); |
| 301 |
db_add_index($ret, 'image', 'fid', array('fid')); |
db_add_index($ret, 'image', 'fid', array('fid')); |
| 302 |
return $ret; |
return $ret; |
| 303 |
} |
} |