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
|
||||
|
||||
|
||||
DB_VERSION = 137
|
||||
DB_VERSION = 138
|
||||
|
||||
|
||||
# Variance created as sqlite has a bunch of undefined aggregate functions.
|
||||
|
|
|
@ -392,9 +392,9 @@ class Sql:
|
|||
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
||||
id SMALLINT UNSIGNED AUTO_INCREMENT NOT NULL, PRIMARY KEY (id),
|
||||
siteId SMALLINT UNSIGNED NOT NULL, FOREIGN KEY (siteId) REFERENCES Sites(id),
|
||||
currency varchar(4) NOT NULL,
|
||||
buyIn INT NOT NULL,
|
||||
fee INT NOT NULL,
|
||||
currency varchar(4),
|
||||
buyIn INT,
|
||||
fee INT,
|
||||
category varchar(9) NOT NULL,
|
||||
limitType char(2) NOT NULL,
|
||||
buyInChips INT,
|
||||
|
@ -423,9 +423,9 @@ class Sql:
|
|||
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
||||
id SERIAL, PRIMARY KEY (id),
|
||||
siteId INT NOT NULL, FOREIGN KEY (siteId) REFERENCES Sites(id),
|
||||
currency varchar(4) NOT NULL,
|
||||
buyin INT NOT NULL,
|
||||
fee INT NOT NULL,
|
||||
currency varchar(4),
|
||||
buyin INT,
|
||||
fee INT,
|
||||
category varchar(9),
|
||||
limitType char(2),
|
||||
buyInChips INT,
|
||||
|
@ -453,9 +453,9 @@ class Sql:
|
|||
self.query['createTourneyTypesTable'] = """CREATE TABLE TourneyTypes (
|
||||
id INTEGER PRIMARY KEY,
|
||||
siteId INT NOT NULL,
|
||||
currency VARCHAR(4) NOT NULL,
|
||||
buyin INT NOT NULL,
|
||||
fee INT NOT NULL,
|
||||
currency VARCHAR(4),
|
||||
buyin INT,
|
||||
fee INT,
|
||||
category TEXT,
|
||||
limitType TEXT,
|
||||
buyInChips INT,
|
||||
|
|
Loading…
Reference in New Issue
Block a user