default has_source to 1

This commit is contained in:
Lex Berezhny 2021-04-23 14:28:19 -04:00
parent 575d6dcd2d
commit 2280fe8e8e

View file

@ -447,7 +447,7 @@ class SQLiteMixin:
if version == (self.SCHEMA_VERSION,): if version == (self.SCHEMA_VERSION,):
return return
if version == ("1.5",) and self.SCHEMA_VERSION == "1.6": if version == ("1.5",) and self.SCHEMA_VERSION == "1.6":
await self.db.execute("ALTER TABLE txo ADD COLUMN has_source bool;") await self.db.execute("ALTER TABLE txo ADD COLUMN has_source bool DEFAULT 1;")
await self.db.execute("UPDATE version SET version = ?", (self.SCHEMA_VERSION,)) await self.db.execute("UPDATE version SET version = ?", (self.SCHEMA_VERSION,))
return return
await self.db.executescript('\n'.join( await self.db.executescript('\n'.join(