From 877564c8c55195fa878d5453b1b3824f1b4842b0 Mon Sep 17 00:00:00 2001 From: rub Date: Fri, 27 Apr 2007 22:25:05 +0000 Subject: Delete all history tables on maintenance page. git-svn-id: http://piwigo.org/svn/trunk@1987 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/maintenance.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'admin') diff --git a/admin/maintenance.php b/admin/maintenance.php index c0184c85c..49d97d8ce 100644 --- a/admin/maintenance.php +++ b/admin/maintenance.php @@ -2,10 +2,9 @@ // +-----------------------------------------------------------------------+ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | -// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net | +// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) -// | file : $RCSfile$ +// | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ // | revision : $Revision$ @@ -63,6 +62,11 @@ switch ($action) case 'history' : { $query = ' +DELETE + FROM '.HISTORY_SUMMARY_TABLE.' +;'; + pwg_query($query); + $query = ' DELETE FROM '.HISTORY_TABLE.' ;'; -- cgit v1.2.3