     jr->EndTime = str_to_utime(jr->cEndTime);
 Index: src/cats/drop_mysql_tables.in
 ===================================================================
---- src/cats/drop_mysql_tables.in	(révision 8456)
-+++ src/cats/drop_mysql_tables.in	(copie de travail)
+--- src/cats/drop_mysql_tables.in	(revision 8456)
++++ src/cats/drop_mysql_tables.in	(working copy)
 @@ -16,7 +16,7 @@
  DROP TABLE IF EXISTS File;
  DROP TABLE IF EXISTS Client;

+ALTER TABLE File CHANGE FileId FileId BIGINT UNSIGNED NOT NULL AUTO_INCREMENT;
+ALTER TABLE BaseFiles CHANGE FileId FileId BIGINT UNSIGNED NOT NULL;
+ALTER TABLE Job ADD ReadBytes BIGINT UNSIGNED DEFAULT 0 AFTER JobBytes; 
 
 DELETE FROM Version;
 INSERT INTO Version (VersionId) VALUES (11);
 
+-- If you have already this table, you can remove it with:
+-- DROP TABLE JobHisto;
+
+-- Create a table like Job for long term statistics
+CREATE TABLE JobHisto (

    JobErrors INTEGER UNSIGNED DEFAULT 0,
    JobMissingFiles INTEGER UNSIGNED DEFAULT 0,
    PoolId INTEGER UNSIGNED REFERENCES Pool DEFAULT 0,
@@ -42,12 +48,180 @@
    PriorJobId INTEGER UNSIGNED REFERENCES Job DEFAULT 0,
    PurgedFiles TINYINT DEFAULT 0,
    HasBase TINYINT DEFAULT 0,
