From bfba335376c8a15c74ec0e8ec71541193b458073 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Feb 2004 19:07:56 +0000 Subject: - Added the possibility to reorder filters. Patch by UnConeD. --- update.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'update.php') diff --git a/update.php b/update.php index 2c4f0f358..89d244c26 100644 --- a/update.php +++ b/update.php @@ -66,7 +66,8 @@ $mysql_updates = array( "2003-12-06" => "update_74", "2004-01-06" => "update_75", "2004-01-11" => "update_76", - "2004-01-13" => "update_77" + "2004-01-13" => "update_77", + "2004-02-03" => "update_78" ); function update_32() { @@ -652,6 +653,19 @@ function update_77() { update_sql("ALTER TABLE {cache} ADD headers text"); } +function update_78() { + if ($GLOBALS["db_type"] == "mysql") { + update_sql("CREATE TABLE filters ( + module varchar(64) NOT NULL default '', + weight tinyint(2) DEFAULT '0' NOT NULL, + KEY weight (weight) + )"); + } + else { + /* Needs PGSQL/MSSQL equivalent */ + } +} + /* ** System functions */ -- cgit v1.2.3