summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
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
*/