@things-factory/operato-tools 8.0.0-alpha.22 → 8.0.0-alpha.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,11 @@ services:
19
19
  depends_on:
20
20
  - postgres
21
21
  - mosquitto
22
+ logging:
23
+ driver: 'json-file'
24
+ options:
25
+ max-size: '100m'
26
+ max-file: '3'
22
27
  postgres:
23
28
  image: postgres:13.2
24
29
  container_name: db-operato-tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-tools",
3
- "version": "8.0.0-alpha.22",
3
+ "version": "8.0.0-alpha.24",
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": "^8.0.0-alpha.22",
42
- "@things-factory/meta-ui": "^8.0.0-alpha.22"
41
+ "@things-factory/builder": "^8.0.0-alpha.24",
42
+ "@things-factory/meta-ui": "^8.0.0-alpha.24"
43
43
  },
44
- "gitHead": "27cd29ef5f60c8fc8a177dd52eb0f4979b463991"
44
+ "gitHead": "934692cc70c308351f4d3f720a26aed295d14486"
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