@@ -36,7 +36,7 @@ describe("conversation SQL store", () => {
3636
3737 try {
3838 const store = createSqlStore ( fixture . sql ) ;
39- await migrateSchema ( fixture . sql ) ;
39+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
4040
4141 await store . recordActivity ( {
4242 conversationId : CONVERSATION_ID ,
@@ -169,7 +169,7 @@ describe("conversation SQL store", () => {
169169
170170 try {
171171 const store = createSqlStore ( fixture . sql ) ;
172- await migrateSchema ( fixture . sql ) ;
172+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
173173
174174 const identity = await upsertIdentity (
175175 fixture . sql ,
@@ -278,7 +278,7 @@ describe("conversation SQL store", () => {
278278
279279 try {
280280 const store = createSqlStore ( fixture . sql ) ;
281- await migrateSchema ( fixture . sql ) ;
281+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
282282
283283 await store . recordActivity ( {
284284 conversationId : CONVERSATION_ID ,
@@ -314,7 +314,7 @@ describe("conversation SQL store", () => {
314314 const fixture = await createLocalJuniorSqlFixture ( ) ;
315315
316316 try {
317- await migrateSchema ( fixture . sql ) ;
317+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
318318
319319 await fixture . sql
320320 . db ( )
@@ -387,7 +387,7 @@ describe("conversation SQL store", () => {
387387
388388 try {
389389 const store = createSqlStore ( fixture . sql ) ;
390- await migrateSchema ( fixture . sql ) ;
390+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
391391
392392 await store . recordActivity ( {
393393 conversationId : CONVERSATION_ID ,
@@ -434,7 +434,7 @@ describe("conversation SQL store", () => {
434434
435435 try {
436436 const store = createSqlStore ( fixture . sql ) ;
437- await migrateSchema ( fixture . sql ) ;
437+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
438438 const destination = inboundMessage ( "visibility" ) . destination ;
439439
440440 // Slack reports this C-prefixed channel private (channel_type: group).
@@ -501,7 +501,7 @@ describe("conversation SQL store", () => {
501501
502502 try {
503503 const store = createSqlStore ( fixture . sql ) ;
504- await migrateSchema ( fixture . sql ) ;
504+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
505505
506506 // A write without a live source signal fails closed to private even
507507 // though the channel id is C-prefixed.
@@ -531,7 +531,7 @@ describe("conversation SQL store", () => {
531531
532532 try {
533533 const store = createSqlStore ( fixture . sql ) ;
534- await migrateSchema ( fixture . sql ) ;
534+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
535535 await fixture . sql . execute (
536536 `
537537INSERT INTO junior_conversations (
@@ -591,7 +591,7 @@ INSERT INTO junior_conversations (
591591
592592 try {
593593 const store = createSqlStore ( fixture . sql ) ;
594- await migrateSchema ( fixture . sql ) ;
594+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
595595
596596 await store . recordExecution ( {
597597 conversationId : CONVERSATION_ID ,
@@ -644,7 +644,7 @@ INSERT INTO junior_conversations (
644644
645645 try {
646646 const store = createSqlStore ( fixture . sql ) ;
647- await migrateSchema ( fixture . sql ) ;
647+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
648648 await store . recordExecution ( {
649649 conversationId : CONVERSATION_ID ,
650650 createdAtMs : 1_000 ,
@@ -721,7 +721,7 @@ WHERE conversation_id = $1
721721
722722 try {
723723 const store = createSqlStore ( fixture . sql ) ;
724- await migrateSchema ( fixture . sql ) ;
724+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
725725
726726 await store . recordExecution ( {
727727 conversationId : CONVERSATION_ID ,
@@ -771,7 +771,7 @@ WHERE conversation_id = $1
771771
772772 try {
773773 const store = createSqlStore ( fixture . sql ) ;
774- await migrateSchema ( fixture . sql ) ;
774+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
775775
776776 await store . recordActivity ( {
777777 conversationId : CONVERSATION_ID ,
@@ -807,7 +807,7 @@ WHERE conversation_id = $1
807807 try {
808808 await disconnectStateAdapter ( ) ;
809809 const store = createSqlStore ( fixture . sql ) ;
810- await migrateSchema ( fixture . sql ) ;
810+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
811811 await store . recordExecution ( {
812812 conversationId : CONVERSATION_ID ,
813813 createdAtMs : 1_000 ,
@@ -841,7 +841,7 @@ WHERE conversation_id = $1
841841 vi . useFakeTimers ( { now : 302_000 } ) ;
842842 await disconnectStateAdapter ( ) ;
843843 const store = createSqlStore ( fixture . sql ) ;
844- await migrateSchema ( fixture . sql ) ;
844+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
845845 await store . recordExecution ( {
846846 conversationId : CONVERSATION_ID ,
847847 createdAtMs : 1_000 ,
@@ -876,7 +876,7 @@ WHERE conversation_id = $1
876876 vi . useFakeTimers ( { now : 2_000 } ) ;
877877 await disconnectStateAdapter ( ) ;
878878 const store = createSqlStore ( fixture . sql ) ;
879- await migrateSchema ( fixture . sql ) ;
879+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
880880 await store . recordExecution ( {
881881 conversationId : CONVERSATION_ID ,
882882 createdAtMs : 1_000 ,
@@ -914,7 +914,7 @@ WHERE conversation_id = $1
914914 vi . useFakeTimers ( { now : 600_000 } ) ;
915915 await disconnectStateAdapter ( ) ;
916916 const store = createSqlStore ( fixture . sql ) ;
917- await migrateSchema ( fixture . sql ) ;
917+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
918918 await store . recordExecution ( {
919919 conversationId : CONVERSATION_ID ,
920920 createdAtMs : 1_000 ,
@@ -968,7 +968,7 @@ WHERE conversation_id = $1
968968 await disconnectStateAdapter ( ) ;
969969 const state = getStateAdapter ( ) ;
970970 const store = createSqlStore ( fixture . sql ) ;
971- await migrateSchema ( fixture . sql ) ;
971+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
972972 await appendInboundMessage ( {
973973 message : inboundMessage ( "check-in" ) ,
974974 conversationStore : store ,
@@ -1021,7 +1021,7 @@ WHERE conversation_id = $1
10211021 await disconnectStateAdapter ( ) ;
10221022 const state = getStateAdapter ( ) ;
10231023 const store = createSqlStore ( fixture . sql ) ;
1024- await migrateSchema ( fixture . sql ) ;
1024+ await migrateSchema ( fixture . sql , { mode : "schema-bootstrap" } ) ;
10251025 await appendInboundMessage ( {
10261026 message : inboundMessage ( "drain-sql" ) ,
10271027 conversationStore : store ,
0 commit comments