summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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;
}