- Patch #938560 by Damien Tournoud: fixed {system} records of installed modules are removed.

merge-requests/26/head
Dries Buytaert 2010-10-12 03:03:41 +00:00
parent 7383675935
commit dc5991ce9c
1 changed files with 3 additions and 1 deletions

View File

@ -2184,9 +2184,11 @@ function system_update_files_database(&$files, $type) {
}
if (count($delete) > 0) {
// Delete all missing files from the system table
// Delete all missing files from the system table, but only if the plugin
// has never been installed.
db_delete('system')
->condition($delete)
->condition('schema_version', -1)
->execute();
}