missed a spot
This commit is contained in:
parent
d1c1a0a0f4
commit
19bcc60c6a
|
@ -137,14 +137,14 @@ class Sql:
|
||||||
if db_server == 'mysql':
|
if db_server == 'mysql':
|
||||||
self.query['createBackingsTable'] = """CREATE TABLE Backings (
|
self.query['createBackingsTable'] = """CREATE TABLE Backings (
|
||||||
id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL, PRIMARY KEY (id),
|
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),
|
playerId INT UNSIGNED NOT NULL, FOREIGN KEY (playerId) REFERENCES Players(id),
|
||||||
buyInPercentage FLOAT UNSIGNED NOT NULL,
|
buyInPercentage FLOAT UNSIGNED NOT NULL,
|
||||||
payOffPercentage FLOAT UNSIGNED NOT NULL) ENGINE=INNODB"""
|
payOffPercentage FLOAT UNSIGNED NOT NULL) ENGINE=INNODB"""
|
||||||
elif db_server == 'postgresql':
|
elif db_server == 'postgresql':
|
||||||
self.query['createBackingsTable'] = """CREATE TABLE Backings (
|
self.query['createBackingsTable'] = """CREATE TABLE Backings (
|
||||||
id BIGSERIAL, PRIMARY KEY (id),
|
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),
|
playerId INT NOT NULL, FOREIGN KEY (playerId) REFERENCES Players(id),
|
||||||
buyInPercentage FLOAT NOT NULL,
|
buyInPercentage FLOAT NOT NULL,
|
||||||
payOffPercentage FLOAT NOT NULL)"""
|
payOffPercentage FLOAT NOT NULL)"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user