1 system.install system_update_1039()

Add the "auto" column to the url_alias table.

Related topics


core/modules/system/system.install, line 2703
Install, update and uninstall functions for the system module.


function system_update_1039() {
  if (!db_field_exists('url_alias', 'auto')) {
    $spec = array(
      'description' => 'Boolean indicator if this path was generated from a pattern or manually.',
      'type' => 'int',
      'size' => 'tiny',
      'not null' => FALSE,
      'default' => 0,
    db_add_field('url_alias', 'auto', $spec);
    // Set all initial values to NULL, as we do not know at this point whether
    // aliases are automatic or not.
    db_query("UPDATE {url_alias} SET auto = NULL");