File tree 1 file changed +2
-2
lines changed
demos/local-only-todolist/lib/models
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:powersync/powersync.dart' ;
2
2
import 'package:powersync_flutter_local_only_demo/models/sync_mode.dart' ;
3
3
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
5
5
/// across two versions of each table: one for local-only use without syncing before a user registers,
6
6
/// the other for sync-enabled use after the user registers/signs in.
7
7
///
@@ -77,7 +77,7 @@ switchToSyncedSchema(PowerSyncDatabase db, String userId) async {
77
77
await tx.execute (
78
78
'INSERT INTO $todosTable SELECT * FROM inactive_local_$todosTable ' );
79
79
80
- // Delete the " local-only" data.
80
+ // Delete the local-only data.
81
81
await tx.execute ('DELETE FROM inactive_local_$todosTable ' );
82
82
await tx.execute ('DELETE FROM inactive_local_$listsTable ' );
83
83
});
You can’t perform that action at this time.
0 commit comments