Skip to content

Commit b44fc6a

Browse files
committed
fix(migrations): Preserve event cutover journal order
Keep the applied conversation-events schema entry at its main-branch ledger position, then journal the retained context, visible-message, and usage migrations in deployment order. Freeze the rebased data migration implementations against the current event schema and update bootstrap coverage for mixed journals.
1 parent 05139a1 commit b44fc6a

12 files changed

Lines changed: 7487 additions & 2427 deletions

packages/junior/migrations/0009_conversation_history_to_sql.ts

Lines changed: 3349 additions & 1010 deletions
Large diffs are not rendered by default.

packages/junior/migrations/0010_conversation_context_checkpoints.ts

Lines changed: 1914 additions & 0 deletions
Large diffs are not rendered by default.

packages/junior/migrations/0011_conversation_visible_message_events.ts

Lines changed: 2125 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.

packages/junior/migrations/meta/_journal.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,24 @@
7373
"breakpoints": true
7474
},
7575
{
76-
"idx": 9,
76+
"idx": 10,
7777
"version": "7",
78-
"when": 1784137322425,
79-
"tag": "0009_conversation_usage",
78+
"when": 1784137322426,
79+
"tag": "0010_conversation_context_checkpoints",
80+
"breakpoints": true
81+
},
82+
{
83+
"idx": 11,
84+
"version": "7",
85+
"when": 1784137322427,
86+
"tag": "0011_conversation_visible_message_events",
87+
"breakpoints": true
88+
},
89+
{
90+
"idx": 12,
91+
"version": "7",
92+
"when": 1784137322428,
93+
"tag": "0012_conversation_usage",
8094
"breakpoints": true
8195
}
8296
]

0 commit comments

Comments
 (0)