backend-plus 2.7.0-beta.0 → 2.7.0-beta.1

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.
@@ -211,6 +211,7 @@ export interface FieldDefinition extends EditableDbDefinition {
211
211
  exportMetadata?:ExportMetadataDefinition
212
212
  description?:string
213
213
  dataLength?:number
214
+ dataDecimals?:number
214
215
  options?:(string|{option:string|number, label:string})[]
215
216
  inView?:boolean
216
217
  sortMethod?:string
@@ -3036,7 +3036,9 @@ AppBackend.prototype.dumpDbTableFields = function dumpDbTableFields(tableDef, op
3036
3036
  }
3037
3037
  fields.push(
3038
3038
  ' '+db.quoteIdent(fieldDef.name)+
3039
- ' '+(fieldDef.dataLength?(fieldType=='text'?'varchar':fieldType)+'('+fieldDef.dataLength+')':fieldType)+
3039
+ ' '+(fieldDef.dataLength?(fieldType=='text'?'varchar':fieldType)+'('+fieldDef.dataLength+
3040
+ (fieldDef.dataDecimals?','+fieldDef.dataDecimals:'')
3041
+ +')':fieldType)+
3040
3042
  ( be.specialSqlDefaultExpressions[fieldDef.defaultDbValue] != null ? ' default ' + be.specialSqlDefaultExpressions[fieldDef.defaultDbValue]
3041
3043
  : fieldDef.defaultDbValue != null ? ' default ' + fieldDef.defaultDbValue
3042
3044
  : be.specialSqlDefaultExpressions[fieldDef.specialDefaultValue] != null ? ' default ' + be.specialSqlDefaultExpressions[fieldDef.specialDefaultValue]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for the anti Pareto rule",
4
- "version": "2.7.0-beta.0",
4
+ "version": "2.7.0-beta.1",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -52,7 +52,7 @@
52
52
  "json4all": "^1.4.4",
53
53
  "lazy-some": "^0.1.0",
54
54
  "like-ar": "^0.5.3",
55
- "login-plus": "^1.8.1",
55
+ "login-plus": "^1.9.0-beta.1",
56
56
  "memorystore": "^1.6.8",
57
57
  "mini-tools": "^1.13.7",
58
58
  "moment": "^2.30.1",
@@ -118,7 +118,8 @@
118
118
  "test-ui": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --single-run --bail test/test-*.js",
119
119
  "test-karma": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --bail test/test-k*.js",
120
120
  "test-why": "node --expose-internals ./node_modules/mocha/bin/_mocha --reporter spec --bail test/test*.js",
121
- "test-ci": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --bail test/test*.js",
121
+ "test-ci": "npm test",
122
+ "test-cov": "(npm run prepublish || echo \"continue w/error\") && mocha --reporter spec --bail test/test*.js",
122
123
  "test-good": "mocha --reporter spec --bail --check-leaks test/test*.js",
123
124
  "example-pu": "node test/puppeteer/first-step.js",
124
125
  "test-pu": "node ./test/download_puppeteer && mocha --reporter spec --bail --check-leaks --globals cptable --globals QUOTE --globals __core-js_shared__ test/test-pu.js",