@famgia/omnify-laravel 0.0.34 → 0.0.35

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
@@ -22,7 +22,7 @@ import {
22
22
  schemaToBlueprint,
23
23
  toColumnName,
24
24
  toTableName
25
- } from "./chunk-BYMCYVUK.js";
25
+ } from "./chunk-WOIXJZT5.js";
26
26
  export {
27
27
  formatColumnMethod,
28
28
  formatForeignKey,
package/dist/plugin.cjs CHANGED
@@ -313,7 +313,9 @@ function expandCompoundType(propName, property, customTypes, options = {}) {
313
313
  const sqlType = field.sql.sqlType.toUpperCase();
314
314
  if (sqlType === "VARCHAR" || sqlType === "CHAR" || sqlType === "STRING") {
315
315
  expandedProp.type = "String";
316
- if (field.sql.length) {
316
+ if (fieldOverride?.length) {
317
+ expandedProp.length = fieldOverride.length;
318
+ } else if (field.sql.length) {
317
319
  expandedProp.length = field.sql.length;
318
320
  }
319
321
  } else if (sqlType === "TINYINT") {