You are here

function workbench_moderation_update_7008 in Workbench Moderation 7

Same name and namespace in other branches
  1. 7.3 workbench_moderation.install \workbench_moderation_update_7008()

Fix the not null column schema for {workbench_moderation_states}.name.

File

./workbench_moderation.install, line 613
Install file for the Workbench Moderation module.

Code

function workbench_moderation_update_7008() {
  db_drop_primary_key('workbench_moderation_states');
  db_change_field('workbench_moderation_states', 'name', 'name', array(
    'description' => 'The machine name of the moderation state.',
    'type' => 'varchar',
    'length' => '255',
    'not null' => TRUE,
  ));
  db_add_primary_key('workbench_moderation_states', array(
    'name',
  ));
}