summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-08-16 07:37:03 +0000
committerDries Buytaert <dries@buytaert.net>2002-08-16 07:37:03 +0000
commite04f6d2328820cded0c853888fdea57119a8fee2 (patch)
tree75598f8d1c651dd4692b580bc925904aec681ce7 /update.php
parentfc143e79a77973671b4a82e0cca817747e3b15d0 (diff)
downloadbrdo-e04f6d2328820cded0c853888fdea57119a8fee2.tar.gz
brdo-e04f6d2328820cded0c853888fdea57119a8fee2.tar.bz2
- Made the rating module and its SQL table ASNI compliant. Patch by jaa.
Diffstat (limited to 'update.php')
-rw-r--r--update.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/update.php b/update.php
index 82c70c465..302ab3fab 100644
--- a/update.php
+++ b/update.php
@@ -47,7 +47,8 @@ $mysql_updates = array(
"2002-06-22" => "update_32",
"2002-07-07" => "update_33",
"2002-07-31" => "update_34",
- "2002-08-10" => "update_35"
+ "2002-08-10" => "update_35",
+ "2002-08-16" => "update_36"
);
// Update functions
@@ -502,6 +503,11 @@ function update_35() {
update_sql("ALTER TABLE poll_choices ADD INDEX (nid);");
}
+function update_36() {
+ update_sql("ALTER TABLE rating CHANGE old previous int(6) NOT NULL default '0';");
+ update_sql("ALTER TABLE rating CHANGE new current int(6) NOT NULL default '0';");
+}
+
function update_upgrade3() {
update_sql("INSERT INTO system VALUES ('archive.module','archive','module','',1);");
update_sql("INSERT INTO system VALUES ('block.module','block','module','',1);");