=== pre-v2 === $ node apps/server/scripts/migrate-dev-db.ts --source $SCRATCH/seeds/pre-v2.sqlite --base-dir $SCRATCH/run-20261113-031305/before/pre-v2 --projects 5 --threads-per-project 10 ⊘ cache disabled Copying visible threads from $SCRATCH/seeds/pre-v2.sqlite (read-only)... Running migrations on the snapshot... [03:13:06.434] INFO (#1): Running database migrations [03:13:06.435] INFO (#1): Upgrading database { migration: '55_OrchestrationV2', progress: '1 of 33' } [03:13:06.458] INFO (#1): Upgrading database { migration: '56_RemoveRedundantProjectionIndexes', progress: '2 of 33' } [03:13:06.461] INFO (#1): Upgrading database { migration: '57_ScheduledTaskWebhooks', progress: '3 of 33' } [03:13:06.463] INFO (#1): Upgrading database { migration: '58_WebhookRelayDeliveries', progress: '4 of 33' } [03:13:06.466] INFO (#1): Upgrading database { migration: '59_McpAppModelContext', progress: '5 of 33' } [03:13:06.467] INFO (#1): Upgrading database { migration: '60_ThreadSnapshotWindowIndexes', progress: '6 of 33' } [03:13:06.469] INFO (#1): Upgrading database { migration: '61_PullRequestReviewGuides', progress: '7 of 33' } [03:13:06.472] INFO (#1): Upgrading database { migration: '62_ThreadFailureLookupIndex', progress: '8 of 33' } [03:13:06.474] INFO (#1): Upgrading database { migration: '63_DropUnusedV1Projections', progress: '9 of 33' } [03:13:06.477] INFO (#1): Upgrading database { migration: '64_CanonicalizeThreadPullRequestLinks', progress: '10 of 33' } [03:13:06.479] INFO (#1): Upgrading database { migration: '65_CodexUsageNativeTurnIndex', progress: '11 of 33' } [03:13:06.481] INFO (#1): Upgrading database { migration: '66_RepairClientSettlementTimestamps', progress: '12 of 33' } [03:13:06.483] INFO (#1): Upgrading database { migration: '67_WebhookDedupe', progress: '13 of 33' } [03:13:06.485] INFO (#1): Upgrading database { migration: '68_ShellStopRequestIndex', progress: '14 of 33' } [03:13:06.488] INFO (#1): Upgrading database { migration: '69_ThreadMessageSearch', progress: '15 of 33' } [03:13:06.491] INFO (#1): Upgrading database { migration: '70_PeerLinks', progress: '16 of 33' } [03:13:06.493] INFO (#1): Upgrading database { migration: '71_PeerLinkFence', progress: '17 of 33' } [03:13:06.495] INFO (#1): Upgrading database { migration: '72_WaitingLinkRequestIndex', progress: '18 of 33' } [03:13:06.497] INFO (#1): Upgrading database { migration: '73_ActiveTurnItemIndexes', progress: '19 of 33' } [03:13:06.499] INFO (#1): Upgrading database { migration: '74_ExcludeAttachmentPlaceholdersFromSearch', progress: '20 of 33' } [03:13:06.502] INFO (#1): Upgrading database { migration: '75_SubagentDeliveryState', progress: '21 of 33' } [03:13:06.504] INFO (#1): Upgrading database { migration: '76_ProjectionProjectsPinArchive', progress: '22 of 33' } [03:13:06.507] INFO (#1): Upgrading database { migration: '77_RepairBooleanSettledOverride', progress: '23 of 33' } [03:13:06.509] INFO (#1): Upgrading database { migration: '78_DropOrchestrationEventCorrelationIndex', progress: '24 of 33' } [03:13:06.510] INFO (#1): Upgrading database { migration: '79_DelegatedRecoveryIndexes', progress: '25 of 33' } [03:13:06.513] INFO (#1): Upgrading database { migration: '80_ScheduledTaskThreadMode', progress: '26 of 33' } [03:13:06.515] INFO (#1): Upgrading database { migration: '81_ProjectionMessageSearchText', progress: '27 of 33' } [03:13:06.518] INFO (#1): Upgrading database { migration: '82_TurnItemConversationIndex', progress: '28 of 33' } [03:13:06.520] INFO (#1): Upgrading database { migration: '83_CommandReadIndexes', progress: '29 of 33' } [03:13:06.522] INFO (#1): Upgrading database { migration: '84_LastExecutedRunIndex', progress: '30 of 33' } [03:13:06.524] INFO (#1): Upgrading database { migration: '85_TurnItemCounts', progress: '31 of 33' } [03:13:06.526] INFO (#1): Upgrading database { migration: '86_QueuedTurnInputIndex', progress: '32 of 33' } [03:13:06.528] INFO (#1): Upgrading database { migration: '87_ProjectionProjectsCustomTitle', progress: '33 of 33' } [03:13:06.531] 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', '81_ProjectionMessageSearchText', '82_TurnItemConversationIndex', '83_CommandReadIndexes', '84_LastExecutedRunIndex', '85_TurnItemCounts', '86_QueuedTurnInputIndex', '87_ProjectionProjectsCustomTitle' ] } Pruning to 5 projects, 10 stopped threads each... Compacting into $SCRATCH/run-20261113-031305/before/pre-v2/userdata/statev2.sqlite... Dev database ready: $SCRATCH/run-20261113-031305/before/pre-v2/userdata/statev2.sqlite (884 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, 81_ProjectionMessageSearchText, 82_TurnItemConversationIndex, 83_CommandReadIndexes, 84_LastExecutedRunIndex, 85_TurnItemCounts, 86_QueuedTurnInputIndex, 87_ProjectionProjectsCustomTitle Exit code: 0 === schema-migrated === $ node apps/server/scripts/migrate-dev-db.ts --source $SCRATCH/seeds/schema-migrated.sqlite --base-dir $SCRATCH/run-20261113-031305/before/schema-migrated --projects 5 --threads-per-project 10 ⊘ cache disabled Copying visible threads from $SCRATCH/seeds/schema-migrated.sqlite (read-only)... Running migrations on the snapshot... Pruning to 5 projects, 10 stopped threads each... Compacting into $SCRATCH/run-20261113-031305/before/schema-migrated/userdata/statev2.sqlite... Dev database ready: $SCRATCH/run-20261113-031305/before/schema-migrated/userdata/statev2.sqlite (884 KB) Synthetic legacy project: 0 threads 1 orchestration events kept Migrations: already current (no new migrations in this checkout) Exit code: 0