SQL: Change column types to 'timestamp' for sessionCache

This commit is contained in:
Worros 2011-03-29 15:36:48 +08:00
parent ab5e28e73d
commit efa1a9e6cf

View File

@ -1516,10 +1516,10 @@ class Sql:
elif db_server == 'sqlite': elif db_server == 'sqlite':
self.query['createSessionsCacheTable'] = """CREATE TABLE SessionsCache ( self.query['createSessionsCacheTable'] = """CREATE TABLE SessionsCache (
id INTEGER PRIMARY KEY, id INTEGER PRIMARY KEY,
sessionStart REAL NOT NULL, sessionStart timestamp NOT NULL,
sessionEnd REAL NOT NULL, sessionEnd timestamp NOT NULL,
gameStart REAL NOT NULL, gameStart timestamp NOT NULL,
gameEnd REAL NOT NULL, gameEnd timestamp NOT NULL,
sessionId INT, sessionId INT,
date TEXT NOT NULL, /* 1st char is style (A/T/H/S), other 6 are the key */ date TEXT NOT NULL, /* 1st char is style (A/T/H/S), other 6 are the key */
type TEXT, type TEXT,