diff options
Diffstat (limited to 'database/updates.inc')
-rw-r--r-- | database/updates.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc index ba66ff511..ef53af326 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -60,7 +60,8 @@ $sql_updates = array( "2004-05-10" => "update_86", "2004-05-18" => "update_87", "2004-06-11" => "update_88", - "2004-06-18" => "update_89" + "2004-06-18" => "update_89", + "2004-06-27" => "update_90" ); function update_32() { @@ -1120,6 +1121,13 @@ function update_89() { return $ret; } +function update_90() { + $ret[] = update_sql("ALTER TABLE {profile_fields} CHANGE overview visibility INT(1) UNSIGNED DEFAULT '0' NOT NULL"); + $ret[] = update_sql("UPDATE {profile_fields} SET visibility = 2 WHERE visibility = 1"); + $ret[] = update_sql("UPDATE {profile_fields} SET visibility = 1 WHERE visibility = 0"); + return $ret; +} + function update_sql($sql) { $edit = $_POST["edit"]; $result = db_query($sql); |