db: Add numeric data_version counter to count modifying transactions

This counter is incremented on each dirty transaction.
This commit is contained in:
Christian Decker
2019-12-18 19:41:01 +01:00
committed by neil saitug
parent 09247d4f95
commit 4a4184be70

View File

@@ -589,6 +589,7 @@ static struct migration dbmigrations[] = {
" SELECT id, 11, local_feerate_per_kw FROM channels WHERE funder = 1 and local_feerate_per_kw != remote_feerate_per_kw;"),
NULL},
/* FIXME: Remove now-unused local_feerate_per_kw and remote_feerate_per_kw from channels */
{SQL("INSERT INTO vars (name, intval) VALUES ('data_version', 0);"), NULL},
};
/* Leak tracking. */