REAL CLI CAPTURE | Linux | Node v26.12.1 Commit: a0efdaeb89a75050612a82436432de4ebf526206 Synthetic data only; no server running; isolated destination; projects=5; threads=10 SOURCE: pre-v2 | legacy threads=1 | V2 table present=False $ node apps/server/scripts/migrate-dev-db.ts --source --base-dir --projects 5 --threads-per-project 10 Copying visible threads from /pre-v2.sqlite (read-only)... Running migrations on the snapshot... [06:02:39.112] 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 /before-pre-v2/userdata/statev2.sqlite... Dev database ready: /before-pre-v2/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 STATUS: 0 Destination database bytes unchanged: False Destination WAL bytes unchanged: False Source database bytes unchanged: True DESTINATION: legacy threads=0 | V2 threads=0 SOURCE: schema-migrated | legacy threads=1 | V2 table present=True $ node apps/server/scripts/migrate-dev-db.ts --source --base-dir --projects 5 --threads-per-project 10 Copying visible threads from /schema-migrated.sqlite (read-only)... Running migrations on the snapshot... Pruning to 5 projects, 10 stopped threads each... Compacting into /before-schema-migrated/userdata/statev2.sqlite... Dev database ready: /before-schema-migrated/userdata/statev2.sqlite (860 KB) Synthetic legacy project: 0 threads 1 orchestration events kept Migrations: already current (no new migrations in this checkout) EXIT STATUS: 0 Destination database bytes unchanged: False Destination WAL bytes unchanged: False Source database bytes unchanged: True DESTINATION: legacy threads=0 | V2 threads=0