summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-14 09:43:13 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-14 09:43:13 +0000
commit922bf65fef34cfe4675240b613329e962f3f8d5c (patch)
tree88262417df5642153ff889168ec465571e51c44b /modules
parentc3ef96b8b03f9a00a872ebe2bdc6af872848f1a4 (diff)
downloadbrdo-922bf65fef34cfe4675240b613329e962f3f8d5c.tar.gz
brdo-922bf65fef34cfe4675240b613329e962f3f8d5c.tar.bz2
#173982 follow up patch by webernet: the profile table might not exist, so we need to check for its existance before updating it
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.install8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 3750516b8..c6fa00d51 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3759,9 +3759,11 @@ function system_update_6031() {
*/
function system_update_6032() {
$ret = array();
- db_drop_unique_key($ret, 'profile_fields', 'name');
- db_change_field($ret, 'profile_fields', 'name', 'name', array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''));
- db_add_unique_key($ret, 'profile_fields', 'name', array('name'));
+ if (db_table_exists('profile_fields')) {
+ db_drop_unique_key($ret, 'profile_fields', 'name');
+ db_change_field($ret, 'profile_fields', 'name', 'name', array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''));
+ db_add_unique_key($ret, 'profile_fields', 'name', array('name'));
+ }
return $ret;
}