You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once a table has been turned into a CRR with crsql_as_crr, dropping it seems to result in irrecoverable corruption since the crsql_changes will be in an invalid state. Deleting changes is not possible (only inserts are allowed).
SELECTing from crsql_changes now leads to query aborted. If the table is dropped and re-created on two sites, trying to sync will fail whenINSERTing old changes that are lingering (could not find row to merge with for tbl ....
I think when dropping a table, all related entries in crsql_changes should be deleted.
The text was updated successfully, but these errors were encountered:
OK deleting mytable__crsql_pks and mytable__crsql_clock seems to resolve the issues.
But since these are not part of the API of cr-sqlite, I think these tables should be dropped along with the source table automatically. But I think this is a known limitation right now:
Once a table has been turned into a CRR with
crsql_as_crr
, dropping it seems to result in irrecoverable corruption since thecrsql_changes
will be in an invalid state. Deleting changes is not possible (only inserts are allowed).SELECT
ing from crsql_changes now leads toquery aborted
. If the table is dropped and re-created on two sites, trying to sync will fail whenINSERT
ing old changes that are lingering (could not find row to merge with for tbl ...
.I think when dropping a table, all related entries in
crsql_changes
should be deleted.The text was updated successfully, but these errors were encountered: