BEFORE | pre-v2 | Linux CLI, Node 26.12.1 | no server running Source: 1 legacy thread; V2 thread table present: False $ node apps/server/scripts/migrate-dev-db.ts --source /state.sqlite --base-dir --projects 5 --threads-per-project 10 Copying visible threads from /state.sqlite (read-only)... Running migrations on the snapshot... [09:38:17.467] INFO (#1): Migrations ran successfully { migrations: [ '55_OrchestrationV2', '56_RemoveRedundantProjectionIndexes', '57_ScheduledTaskWebhooks', '58_WebhookRelayDeliveries', '59_McpAppModelContext', '60_ThreadSnapshotWindowIndexes', '61_PullRequestReviewGuides', '62_ThreadFailureLookupIndex', '63_DropUnusedV1Projections', '64_CanonicalizeThreadPullRequestLinks', '65_CodexUsageNativeTurnIndex', '66_RepairClientSettlementTimestamps', '67_WebhookDedupe', '68_ShellStopRequestIndex', '69_ThreadMessageSearch', '70_PeerLinks', '71_PeerLinkFence', '72_WaitingLinkRequestIndex', '73_ActiveTurnItemIndexes', '74_ExcludeAttachmentPlaceholdersFromSearch', '75_SubagentDeliveryState', '76_ProjectionProjectsPinArchive', '77_RepairBooleanSettledOverride', '78_DropOrchestrationEventCorrelationIndex', '79_DelegatedRecoveryIndexes', '80_ScheduledTaskThreadMode' ] } Pruning to 5 projects, 10 stopped threads each... Compacting into /userdata/statev2.sqlite... Dev database ready: /userdata/statev2.sqlite (860 KB) Synthetic legacy project: 0 threads 1 orchestration events kept Migrations applied: 55_OrchestrationV2, 56_RemoveRedundantProjectionIndexes, 57_ScheduledTaskWebhooks, 58_WebhookRelayDeliveries, 59_McpAppModelContext, 60_ThreadSnapshotWindowIndexes, 61_PullRequestReviewGuides, 62_ThreadFailureLookupIndex, 63_DropUnusedV1Projections, 64_CanonicalizeThreadPullRequestLinks, 65_CodexUsageNativeTurnIndex, 66_RepairClientSettlementTimestamps, 67_WebhookDedupe, 68_ShellStopRequestIndex, 69_ThreadMessageSearch, 70_PeerLinks, 71_PeerLinkFence, 72_WaitingLinkRequestIndex, 73_ActiveTurnItemIndexes, 74_ExcludeAttachmentPlaceholdersFromSearch, 75_SubagentDeliveryState, 76_ProjectionProjectsPinArchive, 77_RepairBooleanSettledOverride, 78_DropOrchestrationEventCorrelationIndex, 79_DelegatedRecoveryIndexes, 80_ScheduledTaskThreadMode Exit code: 0 Destination database bytes unchanged: False Destination WAL bytes unchanged: False Destination projection_threads count: 0 Destination orchestration_v2_projection_threads count: 0 Database SHA256 before: e3ba06536f7dbba337dee3c1c5f01b43660ce276abb54c5cee2d5defc5b970aa Database SHA256 after: 0a55f02d75c0c906225e246a87bd19070181b2709657dbbf8c21454cd177d889 WAL SHA256 before: 9764e0c9ac037dd8d22b4685fa87ca15e0c7d99aeffdd26b4cd769fb5c3882dc WAL SHA256 after: None