You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename the `update_value` column to `data` in the collaboration table
schema, storage class, and tests per feedback in comment:73.
The shorter name is consistent with WordPress meta tables and avoids
confusion with the `update_value()` method in `WP_REST_Meta_Fields`.
See #64696.
@@ -1168,7 +1168,7 @@ private function insert_collaboration_row( int $age_in_seconds, string $label =
1168
1168
'room' => $this->get_post_room(),
1169
1169
'type' => 'update',
1170
1170
'client_id' => '1',
1171
-
'update_value' => wp_json_encode(
1171
+
'data' => wp_json_encode(
1172
1172
array(
1173
1173
'type' => 'update',
1174
1174
'data' => $label,
@@ -1236,7 +1236,7 @@ public function test_cron_cleanup_boundary_at_exactly_seven_days(): void {
1236
1236
wp_delete_old_collaboration_data();
1237
1237
1238
1238
global$wpdb;
1239
-
$remaining = $wpdb->get_col( "SELECT update_value FROM {$wpdb->collaboration}" );
1239
+
$remaining = $wpdb->get_col( "SELECT data FROM {$wpdb->collaboration}" );
1240
1240
1241
1241
$this->assertCount( 1, $remaining, 'Only the row within the 7-day window should remain.' );
1242
1242
$this->assertStringContainsString( 'just-inside', $remaining[0], 'The surviving row should be the one inside the window.' );
@@ -1289,7 +1289,7 @@ public function test_collaboration_routes_not_registered_when_db_version_is_old(
1289
1289
$server = rest_get_server();
1290
1290
$routes = $server->get_routes();
1291
1291
1292
-
$this->assertArrayNotHasKey( '/wp-collaboration/v1/updates', $routes, 'Collaboration routes should not be registered when db_version is below 61840.' );
1292
+
$this->assertArrayNotHasKey( '/wp-collaboration/v1/updates', $routes, 'Collaboration routes should not be registered when db_version is below 61841.' );
1293
1293
1294
1294
// Reset again so subsequent tests get a server with the correct db_version.
1295
1295
$GLOBALS['wp_rest_server'] = null;
@@ -1445,7 +1445,7 @@ public function test_collaboration_expired_awareness_rows_cleaned_up(): void {
0 commit comments