Skip to content

Commit ec3fd2b

Browse files
committed
Schema comments
1 parent b078fb7 commit ec3fd2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/local-only-todolist/lib/models/schema.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:powersync/powersync.dart';
22
import '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
});

0 commit comments

Comments
 (0)