@famgia/omnify-laravel 0.0.51 → 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/index.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  schemaToBlueprint,
23
23
  toColumnName,
24
24
  toTableName
25
- } from "./chunk-FSVH5TYU.js";
25
+ } from "./chunk-TSRWUG2I.js";
26
26
  export {
27
27
  formatColumnMethod,
28
28
  formatForeignKey,
package/dist/plugin.cjs CHANGED
@@ -38,6 +38,7 @@ var TYPE_METHOD_MAP = {
38
38
  Decimal: "decimal",
39
39
  Boolean: "boolean",
40
40
  Text: "text",
41
+ MediumText: "mediumText",
41
42
  LongText: "longText",
42
43
  Date: "date",
43
44
  Time: "time",
@@ -121,6 +122,15 @@ function propertyToColumnMethod(propertyName, property, options = {}) {
121
122
  if (baseProp.unsigned && (method === "tinyInteger" || method === "integer" || method === "bigInteger")) {
122
123
  modifiers.push({ method: "unsigned" });
123
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
+ }
124
134
  const rawDisplayName = property.displayName;
125
135
  if (rawDisplayName) {
126
136
  const displayName = (0, import_omnify_types.resolveLocalizedString)(rawDisplayName, options.locale);
@@ -876,12 +886,14 @@ function getMigrationPath(migration, outputDir = "database/migrations") {
876
886
  // src/migration/alter-generator.ts
877
887
  var TYPE_METHOD_MAP2 = {
878
888
  String: "string",
889
+ TinyInt: "tinyInteger",
879
890
  Int: "integer",
880
891
  BigInt: "bigInteger",
881
892
  Float: "double",
882
893
  Decimal: "decimal",
883
894
  Boolean: "boolean",
884
895
  Text: "text",
896
+ MediumText: "mediumText",
885
897
  LongText: "longText",
886
898
  Date: "date",
887
899
  Time: "time",