You are here

function bootstrap_simple_carousel_update_8300 in bootstrap simple carousel 8

Add a weight field to {bootstrap_simple_carousel} table.

File

./bootstrap_simple_carousel.install, line 81
Defines install of bootstrap simple carousel.

Code

function bootstrap_simple_carousel_update_8300() {
  $weight = [
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ];
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->addField('bootstrap_simple_carousel', 'weight', $weight);
}