diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-09-17 18:39:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-09-17 18:39:16 +0000 |
commit | 85c6e90543b4cf55786659d55ec2ca8c2705b469 (patch) | |
tree | 608c2f2e3513c84150755647e30a1d396eded9cc | |
parent | 2ba4c42ee1d01969f9962bf2ef0872131ff530e5 (diff) | |
download | brdo-85c6e90543b4cf55786659d55ec2ca8c2705b469.tar.gz brdo-85c6e90543b4cf55786659d55ec2ca8c2705b469.tar.bz2 |
- Made sure the sequence table is properly initialized for comments.
-rw-r--r-- | update.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/update.php b/update.php index bfb938220..a67b923d2 100644 --- a/update.php +++ b/update.php @@ -51,7 +51,8 @@ $mysql_updates = array( "2002-08-16" => "update_36", "2002-08-19" => "update_37", "2002-08-26" => "update_38", - "2002-09-15" => "update_39" + "2002-09-15" => "update_39", + "2002-09-17" => "update_40" ); // Update functions @@ -581,6 +582,12 @@ function update_39() { );"); } +function update_40() { + if ($max = db_result(db_query("SELECT MAX(cid) FROM comments;"))) { + update_sql("REPLACE INTO sequences VALUES ('comments', $max);"); + } +} + 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);"); |