You are here

function bibcite_entity_update_8002 in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/bibcite_entity.install \bibcite_entity_update_8002()

Add "uid" property to "bibcite_reference" table.

File

modules/bibcite_entity/bibcite_entity.install, line 40
Module installation hooks implementation.

Code

function bibcite_entity_update_8002() {
  $spec = [
    'type' => 'int',
    'description' => "User ID",
    'length' => 10,
    'not null' => TRUE,
    'default' => 0,
  ];
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->addField('bibcite_reference', 'uid', $spec);
}