You are here

function anonymous_publishing_update_7008 in Anonymous Publishing 7

Make the alias field (added in 7007) accept NULL.

File

./anonymous_publishing.install, line 519
Install and uninstall hooks.

Code

function anonymous_publishing_update_7008() {
  $alias = array(
    'description' => 'byline/alias set by user',
    'type' => 'varchar',
    'length' => EMAIL_MAX_LENGTH,
    'not null' => FALSE,
    'default' => NULL,
  );
  db_change_field('anonymous_publishing', 'alias', 'alias', $alias);
}