From 4d5e5ac504f2a4636420fcc18a00a91e2ff9b42b Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 8 Feb 2017 13:25:52 +0100 Subject: [PATCH] Add default value for fish --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a5e2df3..7a34ba0 100755 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ if dbtype == dbtools.MYSQL: else: db = dbtools.dbObject(dbtype=dbtype, path=dbpath) if not db.isInitialized(): - db.executeQuery("CREATE TABLE tokens(`cid` INT PRIMARY KEY, `ato` TEXT, `ase` TEXT, `fish` INT);") + db.executeQuery("CREATE TABLE tokens(`cid` INT PRIMARY KEY, `ato` TEXT, `ase` TEXT, `fish` INT DEFAULT 0);") db.commit() db.closeConnection()