MerginMaps / db-sync

A tool for two-way synchronization between Mergin Maps and a PostGIS database
https://merginmaps.com
MIT License
45 stars 20 forks source link

Remove base schema if initialization from db fails #95

Closed wonder-sk closed 1 year ago

wonder-sk commented 1 year ago

If user tries to init from database, but for some reason init fails, another try to do init will result in a confusing error:

Base schema exists but missing which project it belongs to

As a fix, we should remove partially created base schema so that we don't have half-initialized data in the database.

Related to #90 (but this is init from DB rather than init from GPKG)