You are here

function feedback_update_6100 in Feedback 7.2

Same name and namespace in other branches
  1. 6.2 feedback.install \feedback_update_6100()

Change fid into type serial field.

File

./feedback.install, line 92
Installation functions for Feedback module.

Code

function feedback_update_6100() {
  db_drop_primary_key('feedback');
  db_change_field('feedback', 'fid', 'fid', array(
    'type' => 'serial',
    'unsigned' => TRUE,
    'not null' => TRUE,
  ), array(
    'primary key' => array(
      'fid',
    ),
  ));
}