You are here

function honeypot_update_8100 in Honeypot 2.0.x

Same name and namespace in other branches
  1. 8 honeypot.install \honeypot_update_8100()

Adds the 'hostname' column to the {honeypot_user} table.

File

./honeypot.install, line 69
Contains install and update functions for Honeypot.

Code

function honeypot_update_8100() {
  $schema = honeypot_schema();
  $spec = $schema['honeypot_user']['fields']['hostname'];
  $spec['initial'] = '';
  \Drupal::database()
    ->schema()
    ->addField('honeypot_user', 'hostname', $spec);
}