function brightcove_update_7601 in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.install \brightcove_update_7601()
File
- ./
brightcove.install, line 482 - Installation file for Brightcove module.
Code
function brightcove_update_7601() {
db_add_field('brightcove_callback', 'hash', [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
]);
db_add_field('brightcove_callback', 'client', [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
]);
db_add_field('brightcove_callback', 'parent_entity_type', [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
]);
db_add_field('brightcove_callback', 'parent_field_name', [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
]);
db_add_field('brightcove_callback', 'parent_bundle_name', [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
]);
db_add_field('brightcove_callback', 'metadata', [
'type' => 'text',
'not null' => TRUE,
'initial' => '',
]);
db_drop_primary_key('brightcove_callback');
db_add_primary_key('brightcove_callback', [
'hash',
]);
}