Add default value for fish

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-08 13:25:52 +01:00
parent ca466277a5
commit 4d5e5ac504

View file

@ -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()