Revision 6e9292aa
Added by Assos Assos over 9 years ago
drupal7/sites/all/modules/ds/ds.install | ||
---|---|---|
69 | 69 |
'view_mode' => array( |
70 | 70 |
'description' => 'The name of the view_mode.', |
71 | 71 |
'type' => 'varchar', |
72 |
'length' => 32,
|
|
72 |
'length' => 64,
|
|
73 | 73 |
'not null' => TRUE, |
74 | 74 |
'default' => '', |
75 | 75 |
), |
... | ... | |
131 | 131 |
'view_mode' => array( |
132 | 132 |
'description' => 'The name of the view_mode.', |
133 | 133 |
'type' => 'varchar', |
134 |
'length' => 32,
|
|
134 |
'length' => 64,
|
|
135 | 135 |
'not null' => TRUE, |
136 | 136 |
'default' => '', |
137 | 137 |
), |
... | ... | |
179 | 179 |
'view_mode' => array( |
180 | 180 |
'description' => 'The machine name of the view mode.', |
181 | 181 |
'type' => 'varchar', |
182 |
'length' => 32,
|
|
182 |
'length' => 64,
|
|
183 | 183 |
'not null' => TRUE, |
184 | 184 |
'default' => '', |
185 | 185 |
), |
... | ... | |
291 | 291 |
'default' => '', |
292 | 292 |
)); |
293 | 293 |
} |
294 |
|
|
295 |
|
|
296 |
/** |
|
297 |
* Increase the view_mode storage length to 64 |
|
298 |
*/ |
|
299 |
function ds_update_7203() { |
|
300 |
db_change_field('ds_field_settings', 'view_mode', 'view_mode', |
|
301 |
array( |
|
302 |
'description' => 'The name of the view_mode.', |
|
303 |
'type' => 'varchar', |
|
304 |
'length' => 64, |
|
305 |
'not null' => TRUE, |
|
306 |
'default' => '', |
|
307 |
) |
|
308 |
); |
|
309 |
db_change_field('ds_layout_settings', 'view_mode', 'view_mode', |
|
310 |
array( |
|
311 |
'description' => 'The name of the view_mode.', |
|
312 |
'type' => 'varchar', |
|
313 |
'length' => 64, |
|
314 |
'not null' => TRUE, |
|
315 |
'default' => '', |
|
316 |
) |
|
317 |
); |
|
318 |
db_change_field('ds_view_modes', 'view_mode', 'view_mode', |
|
319 |
array( |
|
320 |
'description' => 'The machine name of the view mode.', |
|
321 |
'type' => 'varchar', |
|
322 |
'length' => 64, |
|
323 |
'not null' => TRUE, |
|
324 |
'default' => '', |
|
325 |
) |
|
326 |
); |
|
327 |
} |
Also available in: Unified diff
Weekly update of contrib modules