Skip to content

Conversation

simolus3
Copy link
Contributor

We expect calls to powersync_replace_schema(?) with a schema that is already present in the database to be a noop. Unfortunately, version 0.3.13 had a regression here because the CREATE TRIGGER statement for deletes includes a trailing semicolon. This semicolon is not added to sqlite_schema (which is the source we use for diffs to determine which views to update), meaning that all views are re-created every time.

This was caught by a Dart CI failure, so I've copied the test into this repository. I've also bumped the version number so that we can do another release to get this out quickly.

@simolus3 simolus3 requested a review from rkistner April 28, 2025 08:11
@simolus3 simolus3 merged commit 32384f7 into main Apr 29, 2025
21 checks passed
@simolus3 simolus3 deleted the fix-schema-duplicate-change branch April 29, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants