You are here

function bootstrap_simple_carousel_update_8410 in bootstrap simple carousel 8

Add a weight field to {bootstrap_simple_carousel} table.

File

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

Code

function bootstrap_simple_carousel_update_8410() {
  $database = \Drupal::database();
  $database
    ->query("ALTER TABLE {bootstrap_simple_carousel} MODIFY image_alt VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci;");
  $database
    ->query("ALTER TABLE {bootstrap_simple_carousel} MODIFY image_title VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci;");
  $database
    ->query("ALTER TABLE {bootstrap_simple_carousel} MODIFY caption_title VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci;");
  $database
    ->query("ALTER TABLE {bootstrap_simple_carousel} MODIFY caption_text VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci;");
}