@workflow/world-postgres 4.1.0-beta.28 → 4.1.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,575 @@
1
+ {
2
+ "id": "7adbbd35-ca90-4353-bb34-3d1b2435a027",
3
+ "prevId": "b9c4d5e6-f7a8-9012-3456-78901bcdef01",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "workflow.workflow_events": {
8
+ "name": "workflow_events",
9
+ "schema": "workflow",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "varchar",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "type": {
18
+ "name": "type",
19
+ "type": "varchar",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "correlation_id": {
24
+ "name": "correlation_id",
25
+ "type": "varchar",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ },
29
+ "created_at": {
30
+ "name": "created_at",
31
+ "type": "timestamp",
32
+ "primaryKey": false,
33
+ "notNull": true,
34
+ "default": "now()"
35
+ },
36
+ "run_id": {
37
+ "name": "run_id",
38
+ "type": "varchar",
39
+ "primaryKey": false,
40
+ "notNull": true
41
+ },
42
+ "payload": {
43
+ "name": "payload",
44
+ "type": "jsonb",
45
+ "primaryKey": false,
46
+ "notNull": false
47
+ },
48
+ "payload_cbor": {
49
+ "name": "payload_cbor",
50
+ "type": "bytea",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ }
54
+ },
55
+ "indexes": {
56
+ "workflow_events_run_id_index": {
57
+ "name": "workflow_events_run_id_index",
58
+ "columns": [
59
+ {
60
+ "expression": "run_id",
61
+ "isExpression": false,
62
+ "asc": true,
63
+ "nulls": "last"
64
+ }
65
+ ],
66
+ "isUnique": false,
67
+ "concurrently": false,
68
+ "method": "btree",
69
+ "with": {}
70
+ },
71
+ "workflow_events_correlation_id_index": {
72
+ "name": "workflow_events_correlation_id_index",
73
+ "columns": [
74
+ {
75
+ "expression": "correlation_id",
76
+ "isExpression": false,
77
+ "asc": true,
78
+ "nulls": "last"
79
+ }
80
+ ],
81
+ "isUnique": false,
82
+ "concurrently": false,
83
+ "method": "btree",
84
+ "with": {}
85
+ }
86
+ },
87
+ "foreignKeys": {},
88
+ "compositePrimaryKeys": {},
89
+ "uniqueConstraints": {},
90
+ "policies": {},
91
+ "checkConstraints": {},
92
+ "isRLSEnabled": false
93
+ },
94
+ "workflow.workflow_hooks": {
95
+ "name": "workflow_hooks",
96
+ "schema": "workflow",
97
+ "columns": {
98
+ "run_id": {
99
+ "name": "run_id",
100
+ "type": "varchar",
101
+ "primaryKey": false,
102
+ "notNull": true
103
+ },
104
+ "hook_id": {
105
+ "name": "hook_id",
106
+ "type": "varchar",
107
+ "primaryKey": true,
108
+ "notNull": true
109
+ },
110
+ "token": {
111
+ "name": "token",
112
+ "type": "varchar",
113
+ "primaryKey": false,
114
+ "notNull": true
115
+ },
116
+ "owner_id": {
117
+ "name": "owner_id",
118
+ "type": "varchar",
119
+ "primaryKey": false,
120
+ "notNull": true
121
+ },
122
+ "project_id": {
123
+ "name": "project_id",
124
+ "type": "varchar",
125
+ "primaryKey": false,
126
+ "notNull": true
127
+ },
128
+ "environment": {
129
+ "name": "environment",
130
+ "type": "varchar",
131
+ "primaryKey": false,
132
+ "notNull": true
133
+ },
134
+ "created_at": {
135
+ "name": "created_at",
136
+ "type": "timestamp",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "default": "now()"
140
+ },
141
+ "metadata": {
142
+ "name": "metadata",
143
+ "type": "jsonb",
144
+ "primaryKey": false,
145
+ "notNull": false
146
+ },
147
+ "metadata_cbor": {
148
+ "name": "metadata_cbor",
149
+ "type": "bytea",
150
+ "primaryKey": false,
151
+ "notNull": false
152
+ }
153
+ },
154
+ "indexes": {
155
+ "workflow_hooks_run_id_index": {
156
+ "name": "workflow_hooks_run_id_index",
157
+ "columns": [
158
+ {
159
+ "expression": "run_id",
160
+ "isExpression": false,
161
+ "asc": true,
162
+ "nulls": "last"
163
+ }
164
+ ],
165
+ "isUnique": false,
166
+ "concurrently": false,
167
+ "method": "btree",
168
+ "with": {}
169
+ },
170
+ "workflow_hooks_token_index": {
171
+ "name": "workflow_hooks_token_index",
172
+ "columns": [
173
+ {
174
+ "expression": "token",
175
+ "isExpression": false,
176
+ "asc": true,
177
+ "nulls": "last"
178
+ }
179
+ ],
180
+ "isUnique": false,
181
+ "concurrently": false,
182
+ "method": "btree",
183
+ "with": {}
184
+ }
185
+ },
186
+ "foreignKeys": {},
187
+ "compositePrimaryKeys": {},
188
+ "uniqueConstraints": {},
189
+ "policies": {},
190
+ "checkConstraints": {},
191
+ "isRLSEnabled": false
192
+ },
193
+ "workflow.workflow_runs": {
194
+ "name": "workflow_runs",
195
+ "schema": "workflow",
196
+ "columns": {
197
+ "id": {
198
+ "name": "id",
199
+ "type": "varchar",
200
+ "primaryKey": true,
201
+ "notNull": true
202
+ },
203
+ "output": {
204
+ "name": "output",
205
+ "type": "jsonb",
206
+ "primaryKey": false,
207
+ "notNull": false
208
+ },
209
+ "output_cbor": {
210
+ "name": "output_cbor",
211
+ "type": "bytea",
212
+ "primaryKey": false,
213
+ "notNull": false
214
+ },
215
+ "deployment_id": {
216
+ "name": "deployment_id",
217
+ "type": "varchar",
218
+ "primaryKey": false,
219
+ "notNull": true
220
+ },
221
+ "status": {
222
+ "name": "status",
223
+ "type": "status",
224
+ "typeSchema": "public",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "name": {
229
+ "name": "name",
230
+ "type": "varchar",
231
+ "primaryKey": false,
232
+ "notNull": true
233
+ },
234
+ "spec_version": {
235
+ "name": "spec_version",
236
+ "type": "varchar",
237
+ "primaryKey": false,
238
+ "notNull": false
239
+ },
240
+ "execution_context": {
241
+ "name": "execution_context",
242
+ "type": "jsonb",
243
+ "primaryKey": false,
244
+ "notNull": false
245
+ },
246
+ "execution_context_cbor": {
247
+ "name": "execution_context_cbor",
248
+ "type": "bytea",
249
+ "primaryKey": false,
250
+ "notNull": false
251
+ },
252
+ "input": {
253
+ "name": "input",
254
+ "type": "jsonb",
255
+ "primaryKey": false,
256
+ "notNull": false
257
+ },
258
+ "input_cbor": {
259
+ "name": "input_cbor",
260
+ "type": "bytea",
261
+ "primaryKey": false,
262
+ "notNull": false
263
+ },
264
+ "error": {
265
+ "name": "error",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false
269
+ },
270
+ "created_at": {
271
+ "name": "created_at",
272
+ "type": "timestamp",
273
+ "primaryKey": false,
274
+ "notNull": true,
275
+ "default": "now()"
276
+ },
277
+ "updated_at": {
278
+ "name": "updated_at",
279
+ "type": "timestamp",
280
+ "primaryKey": false,
281
+ "notNull": true,
282
+ "default": "now()"
283
+ },
284
+ "completed_at": {
285
+ "name": "completed_at",
286
+ "type": "timestamp",
287
+ "primaryKey": false,
288
+ "notNull": false
289
+ },
290
+ "started_at": {
291
+ "name": "started_at",
292
+ "type": "timestamp",
293
+ "primaryKey": false,
294
+ "notNull": false
295
+ },
296
+ "expired_at": {
297
+ "name": "expired_at",
298
+ "type": "timestamp",
299
+ "primaryKey": false,
300
+ "notNull": false
301
+ }
302
+ },
303
+ "indexes": {
304
+ "workflow_runs_name_index": {
305
+ "name": "workflow_runs_name_index",
306
+ "columns": [
307
+ {
308
+ "expression": "name",
309
+ "isExpression": false,
310
+ "asc": true,
311
+ "nulls": "last"
312
+ }
313
+ ],
314
+ "isUnique": false,
315
+ "concurrently": false,
316
+ "method": "btree",
317
+ "with": {}
318
+ },
319
+ "workflow_runs_status_index": {
320
+ "name": "workflow_runs_status_index",
321
+ "columns": [
322
+ {
323
+ "expression": "status",
324
+ "isExpression": false,
325
+ "asc": true,
326
+ "nulls": "last"
327
+ }
328
+ ],
329
+ "isUnique": false,
330
+ "concurrently": false,
331
+ "method": "btree",
332
+ "with": {}
333
+ }
334
+ },
335
+ "foreignKeys": {},
336
+ "compositePrimaryKeys": {},
337
+ "uniqueConstraints": {},
338
+ "policies": {},
339
+ "checkConstraints": {},
340
+ "isRLSEnabled": false
341
+ },
342
+ "workflow.workflow_steps": {
343
+ "name": "workflow_steps",
344
+ "schema": "workflow",
345
+ "columns": {
346
+ "run_id": {
347
+ "name": "run_id",
348
+ "type": "varchar",
349
+ "primaryKey": false,
350
+ "notNull": true
351
+ },
352
+ "step_id": {
353
+ "name": "step_id",
354
+ "type": "varchar",
355
+ "primaryKey": true,
356
+ "notNull": true
357
+ },
358
+ "step_name": {
359
+ "name": "step_name",
360
+ "type": "varchar",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ },
364
+ "status": {
365
+ "name": "status",
366
+ "type": "step_status",
367
+ "typeSchema": "public",
368
+ "primaryKey": false,
369
+ "notNull": true
370
+ },
371
+ "input": {
372
+ "name": "input",
373
+ "type": "jsonb",
374
+ "primaryKey": false,
375
+ "notNull": false
376
+ },
377
+ "input_cbor": {
378
+ "name": "input_cbor",
379
+ "type": "bytea",
380
+ "primaryKey": false,
381
+ "notNull": false
382
+ },
383
+ "output": {
384
+ "name": "output",
385
+ "type": "jsonb",
386
+ "primaryKey": false,
387
+ "notNull": false
388
+ },
389
+ "output_cbor": {
390
+ "name": "output_cbor",
391
+ "type": "bytea",
392
+ "primaryKey": false,
393
+ "notNull": false
394
+ },
395
+ "error": {
396
+ "name": "error",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false
400
+ },
401
+ "attempt": {
402
+ "name": "attempt",
403
+ "type": "integer",
404
+ "primaryKey": false,
405
+ "notNull": true
406
+ },
407
+ "started_at": {
408
+ "name": "started_at",
409
+ "type": "timestamp",
410
+ "primaryKey": false,
411
+ "notNull": false
412
+ },
413
+ "completed_at": {
414
+ "name": "completed_at",
415
+ "type": "timestamp",
416
+ "primaryKey": false,
417
+ "notNull": false
418
+ },
419
+ "created_at": {
420
+ "name": "created_at",
421
+ "type": "timestamp",
422
+ "primaryKey": false,
423
+ "notNull": true,
424
+ "default": "now()"
425
+ },
426
+ "updated_at": {
427
+ "name": "updated_at",
428
+ "type": "timestamp",
429
+ "primaryKey": false,
430
+ "notNull": true,
431
+ "default": "now()"
432
+ },
433
+ "retry_after": {
434
+ "name": "retry_after",
435
+ "type": "timestamp",
436
+ "primaryKey": false,
437
+ "notNull": false
438
+ }
439
+ },
440
+ "indexes": {
441
+ "workflow_steps_run_id_index": {
442
+ "name": "workflow_steps_run_id_index",
443
+ "columns": [
444
+ {
445
+ "expression": "run_id",
446
+ "isExpression": false,
447
+ "asc": true,
448
+ "nulls": "last"
449
+ }
450
+ ],
451
+ "isUnique": false,
452
+ "concurrently": false,
453
+ "method": "btree",
454
+ "with": {}
455
+ },
456
+ "workflow_steps_status_index": {
457
+ "name": "workflow_steps_status_index",
458
+ "columns": [
459
+ {
460
+ "expression": "status",
461
+ "isExpression": false,
462
+ "asc": true,
463
+ "nulls": "last"
464
+ }
465
+ ],
466
+ "isUnique": false,
467
+ "concurrently": false,
468
+ "method": "btree",
469
+ "with": {}
470
+ }
471
+ },
472
+ "foreignKeys": {},
473
+ "compositePrimaryKeys": {},
474
+ "uniqueConstraints": {},
475
+ "policies": {},
476
+ "checkConstraints": {},
477
+ "isRLSEnabled": false
478
+ },
479
+ "workflow.workflow_stream_chunks": {
480
+ "name": "workflow_stream_chunks",
481
+ "schema": "workflow",
482
+ "columns": {
483
+ "id": {
484
+ "name": "id",
485
+ "type": "varchar",
486
+ "primaryKey": false,
487
+ "notNull": true
488
+ },
489
+ "stream_id": {
490
+ "name": "stream_id",
491
+ "type": "varchar",
492
+ "primaryKey": false,
493
+ "notNull": true
494
+ },
495
+ "run_id": {
496
+ "name": "run_id",
497
+ "type": "varchar",
498
+ "primaryKey": false,
499
+ "notNull": false
500
+ },
501
+ "data": {
502
+ "name": "data",
503
+ "type": "bytea",
504
+ "primaryKey": false,
505
+ "notNull": true
506
+ },
507
+ "created_at": {
508
+ "name": "created_at",
509
+ "type": "timestamp",
510
+ "primaryKey": false,
511
+ "notNull": true,
512
+ "default": "now()"
513
+ },
514
+ "eof": {
515
+ "name": "eof",
516
+ "type": "boolean",
517
+ "primaryKey": false,
518
+ "notNull": true
519
+ }
520
+ },
521
+ "indexes": {
522
+ "workflow_stream_chunks_run_id_index": {
523
+ "name": "workflow_stream_chunks_run_id_index",
524
+ "columns": [
525
+ {
526
+ "expression": "run_id",
527
+ "isExpression": false,
528
+ "asc": true,
529
+ "nulls": "last"
530
+ }
531
+ ],
532
+ "isUnique": false,
533
+ "concurrently": false,
534
+ "method": "btree",
535
+ "with": {}
536
+ }
537
+ },
538
+ "foreignKeys": {},
539
+ "compositePrimaryKeys": {
540
+ "workflow_stream_chunks_stream_id_id_pk": {
541
+ "name": "workflow_stream_chunks_stream_id_id_pk",
542
+ "columns": ["stream_id", "id"]
543
+ }
544
+ },
545
+ "uniqueConstraints": {},
546
+ "policies": {},
547
+ "checkConstraints": {},
548
+ "isRLSEnabled": false
549
+ }
550
+ },
551
+ "enums": {
552
+ "public.step_status": {
553
+ "name": "step_status",
554
+ "schema": "public",
555
+ "values": ["pending", "running", "completed", "failed", "cancelled"]
556
+ },
557
+ "public.status": {
558
+ "name": "status",
559
+ "schema": "public",
560
+ "values": ["pending", "running", "completed", "failed", "cancelled"]
561
+ }
562
+ },
563
+ "schemas": {
564
+ "workflow": "workflow"
565
+ },
566
+ "sequences": {},
567
+ "roles": {},
568
+ "policies": {},
569
+ "views": {},
570
+ "_meta": {
571
+ "columns": {},
572
+ "schemas": {},
573
+ "tables": {}
574
+ }
575
+ }
@@ -36,6 +36,20 @@
36
36
  "when": 1765900000001,
37
37
  "tag": "0004_remove_run_pause_status",
38
38
  "breakpoints": true
39
+ },
40
+ {
41
+ "idx": 5,
42
+ "version": "7",
43
+ "when": 1767723210726,
44
+ "tag": "0005_add_spec_version",
45
+ "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "7",
50
+ "when": 1768500000000,
51
+ "tag": "0006_add_error_cbor",
52
+ "breakpoints": true
39
53
  }
40
54
  ]
41
55
  }
@@ -1,7 +0,0 @@
1
- -- Drop deprecated error columns from workflow_runs table
2
- -- Error data is now stored as JSON in the error column
3
- ALTER TABLE "workflow_runs" DROP COLUMN IF EXISTS "error_code";
4
- --> statement-breakpoint
5
-
6
- -- Drop deprecated error columns from workflow_steps table
7
- ALTER TABLE "workflow_steps" DROP COLUMN IF EXISTS "error_code";