Deploying Schema Changes
Renaming a Column on the Server
Use the ifnull
function in Sync Rules to output whichever column is available. This would handle both the old and new schema versions:
This may produce a validation error because of a missing column, but PowerSync will still allow the deploy.
One the changes have been deployed and replicated, the old reference can be removed from the Sync Rules:
Was this page helpful?