diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-10 06:38:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-10 06:38:20 +0000 |
commit | 029c48c68d7f4f2bc94e93e3333908ca158433c5 (patch) | |
tree | bf1fef18db8910f94ee977861829b966d42efb00 /modules/system/system.install | |
parent | 82b51dff1d2fd90b439129c70b415d30a06d1bce (diff) | |
download | brdo-029c48c68d7f4f2bc94e93e3333908ca158433c5.tar.gz brdo-029c48c68d7f4f2bc94e93e3333908ca158433c5.tar.bz2 |
- Patch #306151 by agentrickard, David_Rothstein, Dave Reid, dbabbage, moshe weitzman: automatically install/uninstall schema.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 3 |
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. |