You are here

function wysiwyg_template_update_8001 in Wysiwyg API template plugin 3.0.x

Drop redundant database tables.

File

./wysiwyg_template.install, line 8

Code

function wysiwyg_template_update_8001() {
  $database = Drupal::database();
  foreach ([
    'wysiwyg_templates',
    'wysiwyg_templates_default',
    'wysiwyg_templates_content_types',
  ] as $table) {
    if ($database
      ->schema()
      ->tableExists($table)) {
      $database
        ->schema()
        ->dropTable($table);
    }
  }
}