Update json2sql.py (#21)

* Update json2sql.py

Add mtgArenaId, mtgoFoilId, mtgoId to cards table

* Add defaults for new columns
This commit is contained in:
Chris Mohr 2019-07-20 18:39:27 -04:00 committed by Zach H
parent a5a65d3fe9
commit 91c6ea6ff7

View file

@ -187,6 +187,9 @@ def build_sql_schema(sql_connection: sqlite3.Connection) -> None:
"mcmName TEXT DEFAULT NULL,"
"mcmId INTEGER DEFAULT 0,"
"mcmMetaId INTEGER DEFAULT 0,"
"mtgArenaId INTEGER NOT NULL DEFAULT 0,"
"mtgoFoilId INTEGER NOT NULL DEFAULT 0,"
"mtgoId INTEGER NOT NULL DEFAULT 0,"
"mtgstocksId INTEGER DEFAULT 0,"
"multiverseId INTEGER,"
"name TEXT,"