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
DB_VERSION = 140
DB_VERSION = 141
# Variance created as sqlite has a bunch of undefined aggregate functions.

View File

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