function block_update_7002 in Drupal 7
Rename {blocks} table to {block}, {blocks_roles} to {block_role} and {boxes} to {block_custom}.
Related topics
File
- modules/
block/ block.install, line 226 - Install, update and uninstall functions for the block module.
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');
}