File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
demos/local-only-todolist/lib/models Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import 'package:powersync/powersync.dart' ;
22import 'package:powersync_flutter_local_only_demo/models/sync_mode.dart' ;
33
4- /// This schema design supports a local-only to sync workflow by managing data
4+ /// This schema design supports a local-only to sync-enabled workflow by managing data
55/// across two versions of each table: one for local-only use without syncing before a user registers,
66/// the other for sync-enabled use after the user registers/signs in.
77///
@@ -77,7 +77,7 @@ switchToSyncedSchema(PowerSyncDatabase db, String userId) async {
7777 await tx.execute (
7878 'INSERT INTO $todosTable SELECT * FROM inactive_local_$todosTable ' );
7979
80- // Delete the " local-only" data.
80+ // Delete the local-only data.
8181 await tx.execute ('DELETE FROM inactive_local_$todosTable ' );
8282 await tx.execute ('DELETE FROM inactive_local_$listsTable ' );
8383 });
You can’t perform that action at this time.
0 commit comments