@things-factory/operato-tools 7.1.20 → 7.1.22

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-tools",
3
- "version": "7.1.20",
3
+ "version": "7.1.22",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -38,8 +38,8 @@
38
38
  "@things-factory/operato-license-checker": "^4.0.4"
39
39
  },
40
40
  "devDependencies": {
41
- "@things-factory/builder": "^7.1.16",
42
- "@things-factory/meta-ui": "^7.1.20"
41
+ "@things-factory/builder": "^7.1.22",
42
+ "@things-factory/meta-ui": "^7.1.22"
43
43
  },
44
- "gitHead": "b8381954019a1057a32c23379277c45447708d84"
44
+ "gitHead": "b4b8efde4096ab1ec02bcf7623e32131254cbfd0"
45
45
  }
@@ -956,16 +956,21 @@ export class {{pascalCase name}}History implements HistoryEntityInterface<{{pas
956
956
  @Field({ nullable: false })
957
957
  public originalId!: string
958
958
 
959
-
960
959
  @HistoryActionColumn({
961
960
  nullable: false,
962
961
  type:
963
962
  DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
964
963
  ? 'enum'
965
964
  : DATABASE_TYPE == 'oracle'
966
- ? 'varchar2'
967
- : 'smallint',
968
- enum: HistoryActionType
965
+ ? 'varchar2'
966
+ : DATABASE_TYPE == 'mssql'
967
+ ? 'nvarchar'
968
+ : 'varchar',
969
+ enum:
970
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
971
+ ? HistoryActionType
972
+ : undefined,
973
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined: 32
969
974
  })
970
975
  @Field({ nullable: false })
971
976
  public dataRevisionAction!: HistoryActionType
@@ -1068,14 +1073,19 @@ export class {{pascalCase name}}History implements HistoryEntityInterface<{{pas
1068
1073
  DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
1069
1074
  ? 'enum'
1070
1075
  : DATABASE_TYPE == 'oracle'
1071
- ? 'varchar2'
1072
- : 'smallint',
1073
- enum: HistoryActionType
1076
+ ? 'varchar2'
1077
+ : DATABASE_TYPE == 'mssql'
1078
+ ? 'nvarchar'
1079
+ : 'varchar',
1080
+ enum:
1081
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
1082
+ ? HistoryActionType
1083
+ : undefined,
1084
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined: 32
1074
1085
  })
1075
1086
  @Field({ nullable: false })
1076
1087
  public dataRevisionAction!: HistoryActionType
1077
1088
 
1078
-
1079
1089
  @Column({ default: 1, nullable: false })
1080
1090
  @Field({ nullable: false })
1081
1091
  dataRevisionNo?: number = 1