garbage collection for signals

This commit is contained in:
Scott Lamb
2019-12-28 07:48:08 -06:00
parent 1fdf6eb022
commit 2bd8963961
3 changed files with 88 additions and 3 deletions

View File

@@ -35,6 +35,8 @@ use failure::Error;
pub fn run(_args: &super::Args, tx: &rusqlite::Transaction) -> Result<(), Error> {
// These create statements match the schema.sql when version 4 was the latest.
tx.execute_batch(r#"
alter table meta add column max_signal_changes integer check (max_signal_changes >= 0);
create table signal (
id integer primary key,
source_uuid blob not null check (length(source_uuid) = 16),