summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 4757d9b75..380d679fc 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -338,6 +338,9 @@ function system_install() {
$modules = array('system', 'filter', 'user', 'node');
foreach ($modules as $module) {
drupal_install_schema($module);
+ $versions = drupal_get_schema_versions($module);
+ $version = $versions ? max($versions) : SCHEMA_INSTALLED;
+ drupal_set_installed_schema_version($module, $version);
}
// Load system theme data appropriately.