From 91c6ea6ff74338863e05a96d7e757c14161a35d0 Mon Sep 17 00:00:00 2001 From: Chris Mohr Date: Sat, 20 Jul 2019 18:39:27 -0400 Subject: [PATCH] Update json2sql.py (#21) * Update json2sql.py Add mtgArenaId, mtgoFoilId, mtgoId to cards table * Add defaults for new columns --- mtgsqlive/json2sql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mtgsqlive/json2sql.py b/mtgsqlive/json2sql.py index e888ad8..403c4bb 100644 --- a/mtgsqlive/json2sql.py +++ b/mtgsqlive/json2sql.py @@ -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,"