| 1 |
<?php |
<?php |
| 2 |
// $Id: image_attach.install,v 1.13 2009/01/13 09:32:25 drewish Exp $ |
// $Id: image_attach.install,v 1.14 2009/01/17 23:42:14 sun Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_schema(). |
* Implementation of hook_schema(). |
| 100 |
'not null' => TRUE, |
'not null' => TRUE, |
| 101 |
'default' => 0, |
'default' => 0, |
| 102 |
)); |
)); |
| 103 |
|
db_drop_primary_key($ret, 'image_attach'); |
| 104 |
db_add_primary_key($ret, 'image_attach', array('nid')); |
db_add_primary_key($ret, 'image_attach', array('nid')); |
| 105 |
|
db_drop_index($ret, 'image_attach', 'iid'); |
| 106 |
db_add_index($ret, 'image_attach', 'iid', array('iid')); |
db_add_index($ret, 'image_attach', 'iid', array('iid')); |
| 107 |
return $ret; |
return $ret; |
| 108 |
} |
} |