Spatial layers (tables) in SpatiaLite include various supporting objects and metadata, including triggers, indices, and entries in (at minimum) the geometry_columns table. I'm looking for (preferably) a GUI that would handle all of the necessary changes in one go, or (fallback) documentation of all required changes so as not to break the spatial layers.
Tables have:
QGIS DB Manager appears have the following effects:
أكثر...
Tables have:
- Entry in geometry_columns.f_table_name.
- Five triggers named [prefix]_[table_name]_geometry, where prefix indicates whether it is a transaction rollback or index update.
- Three spatial indices named
QGIS DB Manager appears have the following effects:
- Correctly updates geometry_columns with new table name
- Does not rename triggers. Trigger definition is partially modified so that BEFORE [INSERT|UPDATE|DELETE] refers to new table name, but condition still searches for old name in geometry_columns.
- Does not rename spatial indices. Not sure if this matters because triggers still refer to old index names.
أكثر...