@mastra/pg 1.0.0-beta.7 → 1.0.0-beta.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.
package/dist/index.js CHANGED
@@ -3325,7 +3325,7 @@ var StoreOperationsPG = class extends StoreOperations {
3325
3325
  const constraints = [];
3326
3326
  if (def.primaryKey) constraints.push("PRIMARY KEY");
3327
3327
  if (!def.nullable) constraints.push("NOT NULL");
3328
- return `"${parsedName}" ${def.type.toUpperCase()} ${constraints.join(" ")}`;
3328
+ return `"${parsedName}" ${this.getSqlType(def.type)} ${constraints.join(" ")}`;
3329
3329
  });
3330
3330
  if (this.schemaName) {
3331
3331
  await this.setupSchema();