@mastra/mysql 0.7.0 → 0.7.1-alpha.0
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/CHANGELOG.md +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/operations/index.d.ts.map +1 -1
- package/package.json +5 -5
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];
|