@opengeni/db 0.27.3 → 0.27.8

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.
@@ -4085,6 +4085,7 @@ var sessionWorkflowWakeOutbox = pgTable5(
4085
4085
  temporalWorkflowId: text5("temporal_workflow_id").notNull(),
4086
4086
  wakeRevision: bigint4("wake_revision", { mode: "number" }).notNull().default(1),
4087
4087
  deliveredRevision: bigint4("delivered_revision", { mode: "number" }).notNull().default(0),
4088
+ controlRevision: bigint4("control_revision", { mode: "number" }).notNull().default(0),
4088
4089
  reason: text5("reason").notNull(),
4089
4090
  attempts: integer5("attempts").notNull().default(0),
4090
4091
  nextAttemptAt: timestamp5("next_attempt_at", { withTimezone: true }).notNull().defaultNow(),
@@ -4101,6 +4102,10 @@ var sessionWorkflowWakeOutbox = pgTable5(
4101
4102
  "session_workflow_wake_outbox_revision_safe_check",
4102
4103
  sql5`${table.wakeRevision} <= 9007199254740991 and ${table.deliveredRevision} <= 9007199254740991`
4103
4104
  ),
4105
+ controlRevisionValid: check4(
4106
+ "session_workflow_wake_outbox_control_revision_check",
4107
+ sql5`${table.controlRevision} >= 0 and ${table.controlRevision} <= ${table.wakeRevision} and ${table.controlRevision} <= 9007199254740991`
4108
+ ),
4104
4109
  workspaceAccount: foreignKey({
4105
4110
  name: "session_workflow_wake_outbox_workspace_account_fk",
4106
4111
  columns: [table.workspaceId, table.accountId],
@@ -6536,4 +6541,4 @@ export {
6536
6541
  rigChanges,
6537
6542
  schema_exports
6538
6543
  };
6539
- //# sourceMappingURL=chunk-EX7CDSGH.js.map
6544
+ //# sourceMappingURL=chunk-M6EOXYHK.js.map