Closed simonw closed 4 years ago
This will check if the view exists and has the exact same matching definition as the one we want. If it doesn't, we will drop it (if it exists) and recreate it.
It should only create views if the underlying tables exist.
I can use the new .create_view(..., replace=True)
parameter in sqlite-utils
2.7.2 for this.
Needed for #36 #10 #12