From 029c48c68d7f4f2bc94e93e3333908ca158433c5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Thu, 10 Sep 2009 06:38:20 +0000 Subject: - Patch #306151 by agentrickard, David_Rothstein, Dave Reid, dbabbage, moshe weitzman: automatically install/uninstall schema. --- modules/system/system.install | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/system/system.install') 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. -- cgit v1.2.3