corrected sqlite table layout. this also fixes hudcache generation for tourneys on sqlite

This commit is contained in:
steffen123 2010-08-11 04:25:47 +02:00
parent 5cba225fb3
commit 02b5ea8d37
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ except ImportError:
use_numpy = False use_numpy = False
DB_VERSION = 140 DB_VERSION = 141
# Variance created as sqlite has a bunch of undefined aggregate functions. # Variance created as sqlite has a bunch of undefined aggregate functions.

View File

@ -918,7 +918,7 @@ class Sql:
commentTs timestamp without time zone)""" commentTs timestamp without time zone)"""
elif db_server == 'sqlite': elif db_server == 'sqlite':
self.query['createTourneysPlayersTable'] = """CREATE TABLE TourneysPlayers ( self.query['createTourneysPlayersTable'] = """CREATE TABLE TourneysPlayers (
id INT PRIMARY KEY, id INTEGER PRIMARY KEY,
tourneyId INT, tourneyId INT,
playerId INT, playerId INT,
rank INT, rank INT,
@ -963,7 +963,7 @@ class Sql:
commentTs timestamp without time zone)""" commentTs timestamp without time zone)"""
elif db_server == 'sqlite': elif db_server == 'sqlite':
self.query['createHandsActionsTable'] = """CREATE TABLE HandsActions ( self.query['createHandsActionsTable'] = """CREATE TABLE HandsActions (
id INT PRIMARY KEY, id INTEGER PRIMARY KEY,
handsPlayerId BIGINT, handsPlayerId BIGINT,
street SMALLINT, street SMALLINT,
actionNo SMALLINT, actionNo SMALLINT,