summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-20 07:12:00 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-20 07:12:00 +0000
commit7f0941956488617b26664523cb4487517d0de79c (patch)
tree7c531f2fb1f5450051781a4eeaa6edba47476e04 /update.php
parent17e92817c538f74bfb49983757278fd4e42f24a5 (diff)
downloadbrdo-7f0941956488617b26664523cb4487517d0de79c.tar.gz
brdo-7f0941956488617b26664523cb4487517d0de79c.tar.bz2
- Bugfix: fixed two problems with adding and deleting access rules. Patch by
Moshe. Requires database upgrade.
Diffstat (limited to 'update.php')
-rw-r--r--update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/update.php b/update.php
index 42fd1efdc..23034cac7 100644
--- a/update.php
+++ b/update.php
@@ -56,7 +56,8 @@ $mysql_updates = array(
"2003-09-10" => "update_64",
"2003-09-29" => "update_65",
"2003-09-30" => "update_66",
- "2003-10-11" => "update_67"
+ "2003-10-11" => "update_67",
+ "2003-10-20" => "update_68"
);
function update_32() {
@@ -507,6 +508,12 @@ function update_67() {
update_sql("ALTER TABLE users DROP homepage");
}
+function update_68() {
+ $max = db_result(db_query("SELECT MAX(aid) FROM {access};"));
+ update_sql("INSERT INTO {sequences} (name, id) VALUES ('access_aid', '$max')");
+ update_sql("ALTER TABLE access CHANGE aid aid tinyint(10) NOT NULL ");
+}
+
/*
** System functions
*/