You are here

function simple_popup_blocks_update_8104 in Simple Popup Blocks 8.2

Add trigger width field in simple_popup_blocks table.

File

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

Code

function simple_popup_blocks_update_8104(&$sandbox) {
  $trigger_width = [
    'type' => 'int',
    'not null' => FALSE,
    'default' => NULL,
    'description' => "Trigger width in px",
  ];
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->addField('simple_popup_blocks', 'trigger_width', $trigger_width);
}