From 7f0941956488617b26664523cb4487517d0de79c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 20 Oct 2003 07:12:00 +0000 Subject: - Bugfix: fixed two problems with adding and deleting access rules. Patch by Moshe. Requires database upgrade. --- update.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'update.php') 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 */ -- cgit v1.2.3