@mastra/mysql 0.8.5-alpha.0 → 0.8.5-alpha.1
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.
package/dist/index.cjs
CHANGED
|
@@ -10379,6 +10379,7 @@ function rowToDefinition(row) {
|
|
|
10379
10379
|
if (transformed.metadata != null) def.metadata = transformed.metadata;
|
|
10380
10380
|
if (transformed.stateSchema != null) def.stateSchema = transformed.stateSchema;
|
|
10381
10381
|
if (transformed.requestContextSchema != null) def.requestContextSchema = transformed.requestContextSchema;
|
|
10382
|
+
if (transformed.schedule != null) def.schedule = transformed.schedule;
|
|
10382
10383
|
if (transformed.authorId != null) def.authorId = String(transformed.authorId);
|
|
10383
10384
|
return def;
|
|
10384
10385
|
}
|
|
@@ -10404,6 +10405,11 @@ var WorkflowDefinitionsMySQL = class extends _mastra_core_storage.WorkflowDefini
|
|
|
10404
10405
|
tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS,
|
|
10405
10406
|
schema: _mastra_core_storage.WORKFLOW_DEFINITIONS_SCHEMA
|
|
10406
10407
|
});
|
|
10408
|
+
await this.operations.alterTable({
|
|
10409
|
+
tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS,
|
|
10410
|
+
schema: _mastra_core_storage.WORKFLOW_DEFINITIONS_SCHEMA,
|
|
10411
|
+
ifNotExists: ["schedule"]
|
|
10412
|
+
});
|
|
10407
10413
|
}
|
|
10408
10414
|
async dangerouslyClearAll() {
|
|
10409
10415
|
await this.operations.clearTable({ tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS });
|
|
@@ -10423,6 +10429,7 @@ var WorkflowDefinitionsMySQL = class extends _mastra_core_storage.WorkflowDefini
|
|
|
10423
10429
|
stateSchema: input.stateSchema ?? null,
|
|
10424
10430
|
requestContextSchema: input.requestContextSchema ?? null,
|
|
10425
10431
|
graph: input.graph,
|
|
10432
|
+
schedule: "schedule" in input ? input.schedule ?? null : null,
|
|
10426
10433
|
status: "active",
|
|
10427
10434
|
source: "storage",
|
|
10428
10435
|
authorId: "authorId" in input ? input.authorId ?? null : null,
|
|
@@ -10453,6 +10460,7 @@ var WorkflowDefinitionsMySQL = class extends _mastra_core_storage.WorkflowDefini
|
|
|
10453
10460
|
if ("stateSchema" in input && input.stateSchema !== void 0) data.stateSchema = input.stateSchema;
|
|
10454
10461
|
if ("requestContextSchema" in input && input.requestContextSchema !== void 0) data.requestContextSchema = input.requestContextSchema;
|
|
10455
10462
|
if ("graph" in input && input.graph !== void 0) data.graph = input.graph;
|
|
10463
|
+
if ("schedule" in input && input.schedule !== void 0) data.schedule = input.schedule;
|
|
10456
10464
|
if ("status" in input && input.status !== void 0) data.status = input.status;
|
|
10457
10465
|
if ("authorId" in input && input.authorId !== void 0) data.authorId = input.authorId;
|
|
10458
10466
|
await this.operations.update({
|