You are here

function cleantalk_update_8138 in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 8.3 cleantalk.install \cleantalk_update_8138()

File

./cleantalk.install, line 290
Install and uninstall functions, schema definition for the CleanTalk module.

Code

function cleantalk_update_8138(&$sandbox) {
  $status_field = [
    'type' => 'int',
    'description' => "Spam status",
    'length' => 1,
    'not null' => TRUE,
    'default' => 0,
    'unsigned' => FALSE,
  ];
  \Drupal::service('database')
    ->schema()
    ->addField('cleantalk_sfw', 'status', $status_field);
}