Druapl 8 修复模块不存在的错误信息

Submitted by dravenk on Sat, 11/25/2017 - 12:15

从数据库删除模块的安装信息:

使用 Drush:

drush sql-query "DELETE FROM key_value WHERE collection='system.schema' AND name='module_name';"

使用 Use Devel  

    $query = \Drupal::database()->delete('key_value')
        ->condition('collection', 'system.schema')
        ->condition('name', 'module_name')
        ->execute();

 

Reference:

How to fix "The following module is missing from the file system..." warning messages