powersync-ja / powersync.dart

SDK that enables local-first and real-time reactive apps with embedded SQLite for Flutter/Dart clients
https://www.powersync.com
133 stars 18 forks source link

Fixed updating schema when moving todos to synced table #176

Closed Chriztiaan closed 1 month ago

Chriztiaan commented 1 month ago

Original issue reported in dart optional sync demo https://github.com/powersync-ja/powersync.dart/discussions/174. This ensures that we correctly copy over the todos with the authed user ID instead of the default local ID. Instead of copying the local data over to the sync table verbatim (and getting the owner ID from the local table), we use the newly logged in user's ID.