From efa1a9e6cf300041117e120e4de132f1cd50caa7 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 29 Mar 2011 15:36:48 +0800 Subject: [PATCH] SQL: Change column types to 'timestamp' for sessionCache --- pyfpdb/SQL.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 92c89f29..ec3db8fd 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -1516,10 +1516,10 @@ class Sql: elif db_server == 'sqlite': self.query['createSessionsCacheTable'] = """CREATE TABLE SessionsCache ( id INTEGER PRIMARY KEY, - sessionStart REAL NOT NULL, - sessionEnd REAL NOT NULL, - gameStart REAL NOT NULL, - gameEnd REAL NOT NULL, + sessionStart timestamp NOT NULL, + sessionEnd timestamp NOT NULL, + gameStart timestamp NOT NULL, + gameEnd timestamp NOT NULL, sessionId INT, date TEXT NOT NULL, /* 1st char is style (A/T/H/S), other 6 are the key */ type TEXT,