You are here

function we_megamenu_update_8101 in Drupal Mega Menu 8.x

Same name and namespace in other branches
  1. 8 we_megamenu.install \we_megamenu_update_8101()

Implements hook_update().

File

./we_megamenu.install, line 38
Create table we_megamenu().

Code

function we_megamenu_update_8101() {
  $sql = 'ALTER TABLE `we_megamenu` CHANGE `data_config` `data_config` LONGTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL';
  \Drupal\Core\Database\Database::getConnection()
    ->query($sql);
}