@famgia/omnify-laravel 0.0.52 → 0.0.53
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-VS3UOQWY.js → chunk-TSRWUG2I.js} +10 -1
- package/dist/chunk-TSRWUG2I.js.map +1 -0
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +9 -0
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-VS3UOQWY.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -122,6 +122,15 @@ function propertyToColumnMethod(propertyName, property, options = {}) {
|
|
|
122
122
|
if (baseProp.unsigned && (method === "tinyInteger" || method === "integer" || method === "bigInteger")) {
|
|
123
123
|
modifiers.push({ method: "unsigned" });
|
|
124
124
|
}
|
|
125
|
+
if (method === "timestamp") {
|
|
126
|
+
const timestampProp = property;
|
|
127
|
+
if (timestampProp.useCurrent) {
|
|
128
|
+
modifiers.push({ method: "useCurrent" });
|
|
129
|
+
}
|
|
130
|
+
if (timestampProp.useCurrentOnUpdate) {
|
|
131
|
+
modifiers.push({ method: "useCurrentOnUpdate" });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
125
134
|
const rawDisplayName = property.displayName;
|
|
126
135
|
if (rawDisplayName) {
|
|
127
136
|
const displayName = (0, import_omnify_types.resolveLocalizedString)(rawDisplayName, options.locale);
|