@@ -109,7 +109,7 @@ VALUES(1, '$local', 5, 6, 7, 0, 0, 1, 0, 0, 0);
109109 expect (db.select ('SELECT key, value FROM ps_kv ORDER BY key' ), [
110110 {'key' : 'last_applied_checkpoint_request_id' , 'value' : 5 },
111111 {'key' : 'last_seen_checkpoint_request_id' , 'value' : 6 },
112- {'key' : 'local_target_op ' , 'value' : 7 },
112+ {'key' : 'target_checkpoint_request_id ' , 'value' : 7 },
113113 ]);
114114 expect (db.select (r"SELECT * FROM ps_buckets WHERE name = '$local'" ),
115115 isEmpty);
@@ -142,7 +142,7 @@ VALUES(1, '$local', 5, 6, 9223372036854775807, 0, 0, 1, 0, 0, 0);
142142 expect (db.select ('SELECT key, value FROM ps_kv ORDER BY key' ), [
143143 {'key' : 'last_applied_checkpoint_request_id' , 'value' : 5 },
144144 {'key' : 'last_seen_checkpoint_request_id' , 'value' : 6 },
145- {'key' : 'local_target_op ' , 'value' : 9223372036854775807 },
145+ {'key' : 'target_checkpoint_request_id ' , 'value' : 9223372036854775807 },
146146 ]);
147147 });
148148
@@ -159,7 +159,7 @@ VALUES(1, '$local', 0, 0, 9223372036854775807, 0, 0, 1, 0, 0, 0);
159159 // The max-op sentinel is valid local target state, but target ops no longer seed
160160 // last_requested_checkpoint_request_id.
161161 expect (db.select ('SELECT key, value FROM ps_kv ORDER BY key' ), [
162- {'key' : 'local_target_op ' , 'value' : 9223372036854775807 },
162+ {'key' : 'target_checkpoint_request_id ' , 'value' : 9223372036854775807 },
163163 ]);
164164 });
165165
@@ -170,7 +170,7 @@ INSERT INTO ps_kv(key, value) VALUES
170170 ('last_requested_checkpoint_request_id', 7),
171171 ('last_seen_checkpoint_request_id', 6),
172172 ('last_applied_checkpoint_request_id', 5),
173- ('local_target_op ', 7);
173+ ('target_checkpoint_request_id ', 7);
174174''' );
175175
176176 db.executeInTx ('select powersync_test_migration(13)' );
@@ -196,7 +196,7 @@ INSERT INTO ps_kv(key, value) VALUES
196196 ('last_requested_checkpoint_request_id', 7),
197197 ('last_seen_checkpoint_request_id', 6),
198198 ('last_applied_checkpoint_request_id', 5),
199- ('local_target_op ', 7);
199+ ('target_checkpoint_request_id ', 7);
200200''' );
201201
202202 db.executeInTx ('select powersync_test_migration(13)' );
@@ -216,7 +216,7 @@ UPDATE ps_buckets
216216 {'key' : 'last_applied_checkpoint_request_id' , 'value' : 8 },
217217 {'key' : 'last_requested_checkpoint_request_id' , 'value' : 7 },
218218 {'key' : 'last_seen_checkpoint_request_id' , 'value' : 8 },
219- {'key' : 'local_target_op ' , 'value' : 9 },
219+ {'key' : 'target_checkpoint_request_id ' , 'value' : 9 },
220220 ]);
221221 expect (db.select (r"SELECT * FROM ps_buckets WHERE name = '$local'" ),
222222 isEmpty);
0 commit comments