geodiff icon indicating copy to clipboard operation
geodiff copied to clipboard

Handle tables with missing PK

Open fernandinand opened this issue 10 months ago • 1 comments

Currently, geodiff copy command fails if a given target tables does not have a PK implemented. Despite this is not generally the best approach (not to have any PK), we need to handle this properly and provide some hints/output to user and not a error message.

Image

fernandinand avatar Mar 05 '25 11:03 fernandinand

Note: this probably only affects postgres driver, which does not expect that there could no primary key and generates invalid CREATE TABLE command. Also worth checking diff & apply operations in postgres, whether they also fail on tables without primary key.

wonder-sk avatar Mar 05 '25 11:03 wonder-sk