Skip to content

Document how to restart failed sync #57

@wonder-sk

Description

@wonder-sk

Sometimes users modify structure of their database and this naturally breaks db-sync. It would be good to document how to restart db-sync when this happens.

If the "source" is a geopackage in Mergin project (where the database structure change happened), this boils down to these steps:

  1. delete "base" and "main" schemas in PostgreSQL
  2. start mergin-db-sync again with --init-from-gkpg

If the source is PostgreSQL:

  1. delete "base" schema in PostgreSQL and the geopackage in the Mergin project
  2. start mergin-db-sync again with --init-from-db

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions