Added New Fields. (#27)

* Added new fields.

- Added `hasLeadershipSkills` and `hasNoDeckLimit`

* Update json2sql.py

* Changed for new build
This commit is contained in:
Mark Cheese 2019-09-16 18:02:35 -04:00 committed by Zach H
parent 6b74f2baad
commit 9f575175bd

View file

@ -122,6 +122,7 @@ def build_sql_schema(sql_connection: sqlite3.Connection) -> None:
"frameVersion TEXT,"
"hand TEXT,"
"hasFoil INTEGER NOT NULL DEFAULT 0," # boolean
"hasNoDeckLimit INTEGER NOT NULL DEFAULT 0," # boolean
"hasNonFoil INTEGER NOT NULL DEFAULT 0," # boolean
"isAlternative INTEGER NOT NULL DEFAULT 0," # boolean
"isArena INTEGER NOT NULL DEFAULT 0," # boolean
@ -138,6 +139,7 @@ def build_sql_schema(sql_connection: sqlite3.Connection) -> None:
"isTextless INTEGER NOT NULL DEFAULT 0," # boolean
"isTimeshifted INTEGER NOT NULL DEFAULT 0," # boolean
"layout TEXT,"
"leadershipSkills TEXT,"
"life TEXT,"
"loyalty TEXT,"
"manaCost TEXT,"