DB: allow NULL for TT.currency/buyin/fee for when this info is not available
This commit is contained in:
parent
a2243c8542
commit
7f25cf6da8
|
@ -74,7 +74,7 @@ except ImportError:
|
||||||
use_numpy = False
|
use_numpy = False
|
||||||
|
|
||||||
|
|
||||||
DB_VERSION = 137
|
DB_VERSION = 138
|
||||||
|
|
||||||
|
|
||||||
# Variance created as sqlite has a bunch of undefined aggregate functions.
|
# Variance created as sqlite has a bunch of undefined aggregate functions.
|
||||||
|
|
|
@ -392,9 +392,9 @@ class Sql:
|
||||||
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
||||||
id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL, PRIMARY KEY (id),
|
id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL, PRIMARY KEY (id),
|
||||||
siteId SMALLINT UNSIGNED NOT NULL, FOREIGN KEY (siteId) REFERENCES Sites(id),
|
siteId SMALLINT UNSIGNED NOT NULL, FOREIGN KEY (siteId) REFERENCES Sites(id),
|
||||||
currency varchar(4) NOT NULL,
|
currency varchar(4),
|
||||||
buyIn INT NOT NULL,
|
buyIn INT,
|
||||||
fee INT NOT NULL,
|
fee INT,
|
||||||
category varchar(9) NOT NULL,
|
category varchar(9) NOT NULL,
|
||||||
limitType char(2) NOT NULL,
|
limitType char(2) NOT NULL,
|
||||||
buyInChips INT,
|
buyInChips INT,
|
||||||
|
@ -423,9 +423,9 @@ class Sql:
|
||||||
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
||||||
id SERIAL, PRIMARY KEY (id),
|
id SERIAL, PRIMARY KEY (id),
|
||||||
siteId INT NOT NULL, FOREIGN KEY (siteId) REFERENCES Sites(id),
|
siteId INT NOT NULL, FOREIGN KEY (siteId) REFERENCES Sites(id),
|
||||||
currency varchar(4) NOT NULL,
|
currency varchar(4),
|
||||||
buyin INT NOT NULL,
|
buyin INT,
|
||||||
fee INT NOT NULL,
|
fee INT,
|
||||||
category varchar(9),
|
category varchar(9),
|
||||||
limitType char(2),
|
limitType char(2),
|
||||||
buyInChips INT,
|
buyInChips INT,
|
||||||
|
@ -453,9 +453,9 @@ class Sql:
|
||||||
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
siteId INT NOT NULL,
|
siteId INT NOT NULL,
|
||||||
currency VARCHAR(4) NOT NULL,
|
currency VARCHAR(4),
|
||||||
buyin INT NOT NULL,
|
buyin INT,
|
||||||
fee INT NOT NULL,
|
fee INT,
|
||||||
category TEXT,
|
category TEXT,
|
||||||
limitType TEXT,
|
limitType TEXT,
|
||||||
buyInChips INT,
|
buyInChips INT,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user