You are here

function serial_update_7131 in Serial Field 7

Add 'node_' to all existing serial tables.

Change name: from: serial_{content_type}_{field_name} to: serial_node_{content_type}_{field_name}

File

./serial.install, line 80
Install, update and uninstall functions for the Serial module.

Code

function serial_update_7131() {

  // All old serial tables are of 'node' entity type.
  foreach (db_find_tables('serial_%') as $table) {
    db_rename_table($table, preg_replace('/^serial_/', 'serial_node_', $table));
  }
}