summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc
index b96d29863..7e437fd4f 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -56,7 +56,8 @@ $sql_updates = array(
"2004-02-27" => "update_82",
"2004-04-15" => "update_83",
"2004-04-21" => "update_84",
- "2004-04-27" => "update_85"
+ "2004-04-27" => "update_85",
+ "2004-05-10" => "update_86"
);
function update_32() {
@@ -1075,6 +1076,13 @@ function update_85() {
return $ret;
}
+function update_86() {
+ $ret = array();
+ $ret[] = update_sql("INSERT INTO {users_roles} (uid, rid) SELECT uid, rid FROM {users}");
+ // TODO: should we verify the insert above worked before dropping rid?
+ $ret[] = update_sql("ALTER TABLE {users} DROP rid");
+}
+
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);