From c7c297b8a6f526a467f0f3bd8044e02d481db63a Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Tue, 17 Sep 2013 09:23:50 +1000 Subject: Finish upgrade to new bans table --- install.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'install.php') diff --git a/install.php b/install.php index 69be6300..c39f62dd 100644 --- a/install.php +++ b/install.php @@ -467,6 +467,11 @@ if (file_exists($config['has_installed'])) { $query->bindValue(':seen', $ban['seen']); $query->execute() or error(db_error($query)); } + + // Drop old bans table + query("DROP TABLE ``bans``") or error(db_error()); + // Replace with new table + query("RENAME TABLE ``bans_new_temp`` TO ``bans``") or error(db_error()); case false: // Update version number file_write($config['has_installed'], VERSION); -- cgit v1.3