You are here

function simple_popup_blocks_update_8101 in Simple Popup Blocks 8

Same name and namespace in other branches
  1. 8.2 simple_popup_blocks.install \simple_popup_blocks_update_8101()

Add visit counts field in simple_popup_blocks table.

File

./simple_popup_blocks.install, line 126
Install, update and uninstall functions for the dbtng_example module.

Code

function simple_popup_blocks_update_8101(&$sandbox) {
  $visit_counts = [
    'type' => 'blob',
    'size' => 'big',
    'not null' => FALSE,
    'description' => 'Visit counts value',
  ];
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->addField('simple_popup_blocks', 'visit_counts', $visit_counts);
}