fix upgrade procedure broken in dfee66c

This commit is contained in:
Scott Lamb 2018-03-22 00:00:39 -07:00
parent 1c9f2a4d83
commit 2ff7ecb6f4

View File

@ -263,7 +263,7 @@ pub fn run(args: &super::Args, tx: &rusqlite::Transaction) -> Result<(), Error>
from
old_recording r cross join open o;
insert into recording_integrity
insert into recording_integrity (composite_id, local_time_delta_90k, sample_file_sha1)
select
r.composite_id,
case when r.run_offset > 0 then local_time_delta_90k else null end,