Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/ctools.install | ||
---|---|---|
40 | 40 |
* Implements hook_schema(). |
41 | 41 |
*/ |
42 | 42 |
function ctools_schema() { |
43 |
return ctools_schema_3(); |
|
43 |
return ctools_schema_4(); |
|
44 |
} |
|
45 |
|
|
46 |
/** |
|
47 |
* Version 4 of the CTools schema. |
|
48 |
*/ |
|
49 |
function ctools_schema_4() { |
|
50 |
$schema = ctools_schema_3(); |
|
51 |
|
|
52 |
// Update the 'name' field to be 255 bytes long: |
|
53 |
$schema['ctools_object_cache']['fields']['name']['length'] = 255; |
|
54 |
|
|
55 |
return $schema; |
|
44 | 56 |
} |
45 | 57 |
|
46 | 58 |
/** |
... | ... | |
49 | 61 |
function ctools_schema_3() { |
50 | 62 |
$schema = ctools_schema_2(); |
51 | 63 |
|
52 |
// update the 'obj' field to be 128 bytes long:
|
|
64 |
// Update the 'obj' field to be 128 bytes long:
|
|
53 | 65 |
$schema['ctools_object_cache']['fields']['obj']['length'] = 128; |
54 | 66 |
|
55 | 67 |
return $schema; |
... | ... | |
61 | 73 |
function ctools_schema_2() { |
62 | 74 |
$schema = ctools_schema_1(); |
63 | 75 |
|
64 |
// update the 'name' field to be 128 bytes long:
|
|
76 |
// Update the 'name' field to be 128 bytes long:
|
|
65 | 77 |
$schema['ctools_object_cache']['fields']['name']['length'] = 128; |
66 | 78 |
|
67 | 79 |
// Update the 'data' field to be type 'blob'. |
... | ... | |
95 | 107 |
'serialize' => TRUE, |
96 | 108 |
), |
97 | 109 |
'filter' => array( |
98 |
'type' => 'int',
|
|
99 |
'size' => 'tiny',
|
|
100 |
'description' => 'Whether or not this CSS needs to be filtered.',
|
|
101 |
),
|
|
110 |
'type' => 'int', |
|
111 |
'size' => 'tiny', |
|
112 |
'description' => 'Whether or not this CSS needs to be filtered.', |
|
113 |
), |
|
102 | 114 |
), |
103 | 115 |
'primary key' => array('cid'), |
104 | 116 |
); |
... | ... | |
197 | 209 |
if ($result) { |
198 | 210 |
db_delete('system')->condition('name', 'panels_views')->execute(); |
199 | 211 |
module_enable(array('views_content'), TRUE); |
200 |
} |
|
212 |
}
|
|
201 | 213 |
} |
202 | 214 |
|
203 | 215 |
/** |
... | ... | |
216 | 228 |
} |
217 | 229 |
|
218 | 230 |
/** |
219 |
* ctools_custom_content table was originally here, but is now moved to |
|
231 |
* The ctools_custom_content table was originally here, but is now moved to
|
|
220 | 232 |
* its own module. |
221 | 233 |
*/ |
222 | 234 |
function ctools_update_6007() { |
... | ... | |
230 | 242 |
} |
231 | 243 |
|
232 | 244 |
/** |
233 |
* ctools_object_cache needs to be defined as a blob. |
|
245 |
* The ctools_object_cache needs to be defined as a blob.
|
|
234 | 246 |
*/ |
235 | 247 |
function ctools_update_6008() { |
236 | 248 |
db_delete('ctools_object_cache') |
237 | 249 |
->execute(); |
238 | 250 |
|
239 | 251 |
db_change_field('ctools_object_cache', 'data', 'data', array( |
240 |
'type' => 'blob',
|
|
241 |
'size' => 'big',
|
|
242 |
'description' => 'Serialized data being stored.',
|
|
243 |
'serialize' => TRUE,
|
|
244 |
)
|
|
252 |
'type' => 'blob', |
|
253 |
'size' => 'big', |
|
254 |
'description' => 'Serialized data being stored.', |
|
255 |
'serialize' => TRUE, |
|
256 |
) |
|
245 | 257 |
); |
246 | 258 |
} |
247 | 259 |
|
... | ... | |
263 | 275 |
'description' => 'The type of the object this cache is attached to; this essentially represents the owner so that several sub-systems can use this cache.', |
264 | 276 |
)); |
265 | 277 |
} |
278 |
|
|
279 |
/** |
|
280 |
* Increase the length of the ctools_object_cache.name column to 255. |
|
281 |
*/ |
|
282 |
function ctools_update_7002() { |
|
283 |
db_change_field('ctools_object_cache', 'name', 'name', array( |
|
284 |
'type' => 'varchar', |
|
285 |
'length' => '255', |
|
286 |
'not null' => TRUE, |
|
287 |
)); |
|
288 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules