@mastra/mssql 1.7.4-alpha.0 → 1.7.4-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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflow-definitions/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4156,6 +4156,12 @@ function rowToDefinition(row) {
|
|
|
4156
4156
|
if (stateSchema != null) def.stateSchema = stateSchema;
|
|
4157
4157
|
const requestContextSchema = parseJson(row.requestContextSchema, "requestContextSchema", row.id);
|
|
4158
4158
|
if (requestContextSchema != null) def.requestContextSchema = requestContextSchema;
|
|
4159
|
+
try {
|
|
4160
|
+
const schedule = parseJson(row.schedule, "schedule", row.id);
|
|
4161
|
+
if (schedule != null) def.schedule = schedule;
|
|
4162
|
+
} catch {
|
|
4163
|
+
def.schedule = row.schedule;
|
|
4164
|
+
}
|
|
4159
4165
|
if (row.authorId != null) def.authorId = String(row.authorId);
|
|
4160
4166
|
return def;
|
|
4161
4167
|
}
|
|
@@ -4190,6 +4196,11 @@ var WorkflowDefinitionsMSSQL = class WorkflowDefinitionsMSSQL extends _mastra_co
|
|
|
4190
4196
|
tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS,
|
|
4191
4197
|
schema: _mastra_core_storage.WORKFLOW_DEFINITIONS_SCHEMA
|
|
4192
4198
|
});
|
|
4199
|
+
await this.db.alterTable({
|
|
4200
|
+
tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS,
|
|
4201
|
+
schema: _mastra_core_storage.WORKFLOW_DEFINITIONS_SCHEMA,
|
|
4202
|
+
ifNotExists: ["schedule"]
|
|
4203
|
+
});
|
|
4193
4204
|
await this.createDefaultIndexes();
|
|
4194
4205
|
await this.createCustomIndexes();
|
|
4195
4206
|
}
|
|
@@ -4234,6 +4245,7 @@ var WorkflowDefinitionsMSSQL = class WorkflowDefinitionsMSSQL extends _mastra_co
|
|
|
4234
4245
|
stateSchema: input.stateSchema ?? null,
|
|
4235
4246
|
requestContextSchema: input.requestContextSchema ?? null,
|
|
4236
4247
|
graph: input.graph,
|
|
4248
|
+
schedule: "schedule" in input ? input.schedule ?? null : null,
|
|
4237
4249
|
status: "active",
|
|
4238
4250
|
source: "storage",
|
|
4239
4251
|
authorId: "authorId" in input ? input.authorId ?? null : null,
|
|
@@ -4264,6 +4276,7 @@ var WorkflowDefinitionsMSSQL = class WorkflowDefinitionsMSSQL extends _mastra_co
|
|
|
4264
4276
|
if ("stateSchema" in input && input.stateSchema !== void 0) data.stateSchema = input.stateSchema;
|
|
4265
4277
|
if ("requestContextSchema" in input && input.requestContextSchema !== void 0) data.requestContextSchema = input.requestContextSchema;
|
|
4266
4278
|
if ("graph" in input && input.graph !== void 0) data.graph = input.graph;
|
|
4279
|
+
if ("schedule" in input && input.schedule !== void 0) data.schedule = input.schedule;
|
|
4267
4280
|
if ("status" in input && input.status !== void 0) data.status = input.status;
|
|
4268
4281
|
if ("authorId" in input && input.authorId !== void 0) data.authorId = input.authorId;
|
|
4269
4282
|
await this.db.update({
|