summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 371606ba3..663bccf61 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -836,7 +836,7 @@ function update_80() {
array("MSN messenger ID", "msn", "textfield", NULL, 0),
array("Yahoo messenger ID", "yahoo", "textfield", NULL, 0),
array("AIM messenger ID", "aim", "textfield", NULL, 0),
- array("URL of homepage", "homepage", "textfield", NULL, 1),
+ array("URL of homepage", "homepage", "url", NULL, 1),
array("Biography", "biography", "textarea", NULL, 0),
array("Interests", "interests", "textarea", NULL, 0),
array("Public key", "publickey", "textarea", NULL, 0)
@@ -880,16 +880,16 @@ function update_80() {
// Save the update record:
user_save($account, $edit);
}
-
+
return $ret;
}
function update_81() {
$ret[] = update_sql('ALTER TABLE {profile_fields} ADD page varchar(255) default NULL');
-
+ $ret[] = update_sql("UPDATE {profile_fields} SET type = 'url' WHERE name = 'homepage'");
return $ret;
}
-
+
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);