diff options
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/update.php b/update.php index 1cc0d1c81..f26937533 100644 --- a/update.php +++ b/update.php @@ -41,6 +41,7 @@ $mysql_updates = array( "2001-12-16" => "update_14", "2001-12-24" => "update_15", "2001-12-30" => "update_16", + "2001-12-31" => "update_17", ); // Update functions @@ -296,6 +297,15 @@ function update_16() { update_sql("ALTER TABLE comments CHANGE lid nid int(10) NOT NULL;"); } +function update_17() { + update_sql("CREATE TABLE history ( + uid int(10) DEFAULT '0' NOT NULL, + nid int(10) DEFAULT '0' NOT NULL, + timestamp int(11) DEFAULT '0' NOT NULL, + PRIMARY KEY (uid, nid) + );"); +} + // System functions function update_sql($sql) { global $edit; |