zcash_client_sqlite: Store is_change as INTEGER instead of BOOLEAN

Needed because SQLite internally stores BOOLEAN as INTEGER anyway, but
this causes problems with newer versions of Room on Android.
This commit is contained in:
Jack Grigg 2019-11-26 14:12:34 +00:00
parent 4cfdacedec
commit c8074d42b8
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ pub fn init_data_database<P: AsRef<Path>>(db_data: P) -> Result<(), Error> {
value INTEGER NOT NULL,
rcm BLOB NOT NULL,
nf BLOB NOT NULL UNIQUE,
is_change BOOLEAN NOT NULL,
is_change INTEGER NOT NULL,
memo BLOB,
spent INTEGER,
FOREIGN KEY (tx) REFERENCES transactions(id_tx),