@famgia/omnify-laravel 0.0.49 → 0.0.50
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/{chunk-RP2B7BTK.js → chunk-JCVJ7V7S.js} +3 -3
- package/dist/chunk-JCVJ7V7S.js.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +2 -2
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-RP2B7BTK.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -106,7 +106,7 @@ function propertyToColumnMethod(propertyName, property, options = {}) {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
const baseProp = property;
|
|
109
|
-
if (baseProp.
|
|
109
|
+
if (baseProp.primary) {
|
|
110
110
|
modifiers.push({ method: "primary" });
|
|
111
111
|
}
|
|
112
112
|
if (baseProp.nullable) {
|
|
@@ -480,7 +480,7 @@ function schemaToBlueprint(schema, allSchemas, options = {}) {
|
|
|
480
480
|
} else if (schema.properties) {
|
|
481
481
|
const pkColumns = [];
|
|
482
482
|
for (const [propName, property] of Object.entries(schema.properties)) {
|
|
483
|
-
if (property.
|
|
483
|
+
if (property.primary) {
|
|
484
484
|
pkColumns.push(toColumnName(propName));
|
|
485
485
|
}
|
|
486
486
|
}
|