From 02b5ea8d37326cba2bdb379d03b5a03afcd3afd4 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Wed, 11 Aug 2010 04:25:47 +0200 Subject: [PATCH] corrected sqlite table layout. this also fixes hudcache generation for tourneys on sqlite --- pyfpdb/Database.py | 2 +- pyfpdb/SQL.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index a994b889..6a520c41 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -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. diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index ca0c1b47..af34c34f 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -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,