| 1 |
<?php |
<?php |
| 2 |
// $Id: filter.install,v 1.22 2009/10/13 15:39:41 dries Exp $ |
// $Id: filter.install,v 1.23 2009/10/16 19:06:23 dries Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 97 |
'unique keys' => array( |
'unique keys' => array( |
| 98 |
'name' => array('name'), |
'name' => array('name'), |
| 99 |
), |
), |
| 100 |
|
'indexes' => array( |
| 101 |
|
'weight' => array('weight'), |
| 102 |
|
), |
| 103 |
); |
); |
| 104 |
|
|
| 105 |
$schema['cache_filter'] = drupal_get_schema_unprocessed('system', 'cache'); |
$schema['cache_filter'] = drupal_get_schema_unprocessed('system', 'cache'); |
| 118 |
*/ |
*/ |
| 119 |
function filter_update_7000() { |
function filter_update_7000() { |
| 120 |
db_add_field('filter_formats', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')); |
db_add_field('filter_formats', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')); |
| 121 |
|
db_add_index('filter_formats', 'weight', array('weight')); |
| 122 |
} |
} |
| 123 |
|
|
| 124 |
/** |
/** |