You are here

function honeypot_update_8100 in Honeypot 8

Same name and namespace in other branches
  1. 2.0.x 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);
}