summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-02-06 19:07:56 +0000
committerDries Buytaert <dries@buytaert.net>2004-02-06 19:07:56 +0000
commitbfba335376c8a15c74ec0e8ec71541193b458073 (patch)
treeea62f98f1dd0f5a2329ec96af6f456db8fb019ac /update.php
parent0db96f196a89956e60ad38aaf8fac1dcbdf0fa4c (diff)
downloadbrdo-bfba335376c8a15c74ec0e8ec71541193b458073.tar.gz
brdo-bfba335376c8a15c74ec0e8ec71541193b458073.tar.bz2
- Added the possibility to reorder filters. Patch by UnConeD.
Diffstat (limited to 'update.php')
-rw-r--r--update.php16
1 files changed, 15 insertions, 1 deletions
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
*/