Commit 922bf65f authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#173982 follow up patch by webernet: the profile table might not exist, so we...

#173982 follow up patch by webernet: the profile table might not exist, so we need to check for its existance before updating it
parent c3ef96b8
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment