From 19bcc60c6ad4baacff43b508bd988205f05ff93b Mon Sep 17 00:00:00 2001 From: steffen123 Date: Wed, 11 Aug 2010 04:50:01 +0200 Subject: [PATCH] missed a spot --- pyfpdb/SQL.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 111cae9f..b8ddf4f0 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -137,14 +137,14 @@ class Sql: if db_server == 'mysql': self.query['createBackingsTable'] = """CREATE TABLE Backings ( id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL, PRIMARY KEY (id), - tourneysPlayersId BIGINT UNSIGNED NOT NULL, FOREIGN KEY (tourneysPlayerId) REFERENCES TourneysPlayers(id), + tourneysPlayersId BIGINT UNSIGNED NOT NULL, FOREIGN KEY (tourneysPlayersId) REFERENCES TourneysPlayers(id), playerId INT UNSIGNED NOT NULL, FOREIGN KEY (playerId) REFERENCES Players(id), buyInPercentage FLOAT UNSIGNED NOT NULL, payOffPercentage FLOAT UNSIGNED NOT NULL) ENGINE=INNODB""" elif db_server == 'postgresql': self.query['createBackingsTable'] = """CREATE TABLE Backings ( id BIGSERIAL, PRIMARY KEY (id), - tourneysPlayersId INT NOT NULL, FOREIGN KEY (tourneysPlayerId) REFERENCES TourneysPlayers(id), + tourneysPlayersId INT NOT NULL, FOREIGN KEY (tourneysPlayersId) REFERENCES TourneysPlayers(id), playerId INT NOT NULL, FOREIGN KEY (playerId) REFERENCES Players(id), buyInPercentage FLOAT NOT NULL, payOffPercentage FLOAT NOT NULL)"""