function block_update_7002
Rename {blocks} table to {block}, {blocks_roles} to {block_role} and {boxes} to {block_custom}.
Related topics
File
-
modules/
block/ block.install, line 226
Code
function block_update_7002() {
db_drop_index('blocks', 'list');
db_rename_table('blocks', 'block');
db_rename_table('blocks_roles', 'block_role');
db_rename_table('boxes', 'block_custom');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.