@mastra/mysql 0.7.0 → 0.7.1-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.js CHANGED
@@ -581,7 +581,7 @@ var StoreOperationsMySQL = class extends StoreOperations {
581
581
  params.push(db);
582
582
  }
583
583
  const [rows] = await this.pool.execute(sql, params);
584
- const existing = new Set((rows || []).map((row) => String(row.column_name).toLowerCase()));
584
+ const existing = new Set((rows || []).map((row) => String(row.column_name ?? row.COLUMN_NAME).toLowerCase()));
585
585
  for (const columnName of ifNotExists) {
586
586
  if (existing.has(columnName.toLowerCase())) continue;
587
587
  const column = schema[columnName];
@@ -759,7 +759,8 @@ var AgentsMySQL = class AgentsMySQL extends AgentsStorage {
759
759
  "requestContextSchema",
760
760
  "workspace",
761
761
  "skills",
762
- "skillsFormat"
762
+ "skillsFormat",
763
+ "durable"
763
764
  ]
764
765
  });
765
766
  await this.createDefaultIndexes();
@@ -1051,6 +1052,7 @@ var AgentsMySQL = class AgentsMySQL extends AgentsStorage {
1051
1052
  workspace: input.workspace ?? null,
1052
1053
  skills: input.skills ?? null,
1053
1054
  skillsFormat: input.skillsFormat ?? null,
1055
+ durable: input.durable ?? null,
1054
1056
  changedFields: input.changedFields ?? null,
1055
1057
  changeMessage: input.changeMessage ?? null,
1056
1058
  createdAt: now
@@ -1266,6 +1268,7 @@ var AgentsMySQL = class AgentsMySQL extends AgentsStorage {
1266
1268
  workspace: this.safeParseJSON(row.workspace),
1267
1269
  skills: this.safeParseJSON(row.skills),
1268
1270
  skillsFormat: row.skillsFormat,
1271
+ durable: this.safeParseJSON(row.durable),
1269
1272
  changedFields: this.safeParseJSON(row.changedFields),
1270
1273
  changeMessage: row.changeMessage ?? void 0,
1271
1274
  createdAt: row.createdAt instanceof Date ? row.createdAt : new Date(row.createdAt)