433be217ac
Now the test actually has a recording and garbage with matching files. This caught a few problems in the upgrade procedure: * it didn't work with foreign keys enabled because the new recording table was set up after the new camera table, and the old recording table was destroyed after the old camera table. And now I enable foreign keys all the time. Reorder the procedure to fix. * the pathname manipulation in the v2 to v3 procedure was incorrect since my introduction of nix because I gave it a &[u8] with the trailing nul, where I should have used CStr::from_bytes_with_nul. * it wasn't removing garbage files. It'd be most natural to do this in the v2 to v3 upgrade (with the rename) but I historically removed the table when upgrading to v2. I can't redefine the schema now, so do it unnaturally. I'm considering also renaming all uuid-like files on upgrade to v4/v5 to clean up this mess automatically for installations that have already done this upgrade. |
||
---|---|---|
.. | ||
mod.rs | ||
v0.sql | ||
v0_to_v1.rs | ||
v1.sql | ||
v1_to_v2.rs | ||
v2_to_v3.rs | ||
v3.sql | ||
v3_to_v4.rs | ||
v4_to_v5.rs |