Sync Rules are deprecated. For the Sync Streams version of this page, see Multiple Client Versions.
Versioning with Client Parameters
Clients pass their version to the PowerSync Service as a client parameter, and parameter queries filter on it so that each client only receives the buckets for its version. For example, suppose a new app version changes the structure of theassets table in its client-side schema, defining it as assets_v2, while older app versions still define assets. Define a second bucket definition alongside the existing one, using an alias to map the source assets table to the new client-side name, and filter each on a schema_version client parameter: