moonfire-nvr/db/upgrade
Scott Lamb c0da1ef880 make v1->v3 upgrade work with --features=bundled
--features=bundled enables -DSQLITE_DEFAULT_FOREIGN_KEYS=1, and so some
operations have to be done in the proper order.

* enable foreign key enforcement all the time, so I test this more reliably.
* reorder some parts of the v1->v3 order. foreign key enforcement is
  immediate (rather than deferred) by default. and ensure
  old_recording_playback isn't left with a dangling reference to old_recording
  at the v2 stage. Instead, wait until v3 to delete tables it depends on.
2018-03-22 09:05:40 -07:00
..
mod.rs make v1->v3 upgrade work with --features=bundled 2018-03-22 09:05:40 -07:00
v0_to_v1.rs refine 1->3 upgrade process 2018-03-01 09:47:56 -08:00
v1_to_v2.rs make v1->v3 upgrade work with --features=bundled 2018-03-22 09:05:40 -07:00
v2_to_v3.rs make v1->v3 upgrade work with --features=bundled 2018-03-22 09:05:40 -07:00