function scald_index_update_7001 in scald_index 7
Add column id and primary key to scald_index table.
File
- ./
scald_index.install, line 83 - Scald Index Installation
Code
function scald_index_update_7001() {
// If you have a "All parts of a PRIMARY KEY must be NOT NULL" error,
// see https://www.drupal.org/node/2665362 issue.
db_add_field('scald_index', 'id', array(
'description' => 'Extra auto increment field so we can have a PRIMARY key',
'type' => 'serial',
'not null' => TRUE,
), array(
'primary key' => array(
'id',
),
));
}