@nocobase/database 2.0.0-alpha.47 → 2.0.0-alpha.48
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.
|
@@ -47,7 +47,7 @@ import_dayjs.default.extend(import_utc.default);
|
|
|
47
47
|
const _TimeInterface = class _TimeInterface extends import_base_interface.BaseInterface {
|
|
48
48
|
toValue(value, ctx) {
|
|
49
49
|
if (this.validate(value)) {
|
|
50
|
-
const result = import_dayjs.default
|
|
50
|
+
const result = (0, import_dayjs.default)(value).format("HH:mm:ss");
|
|
51
51
|
return result;
|
|
52
52
|
}
|
|
53
53
|
return value;
|
|
@@ -39,7 +39,7 @@ const postgres = {
|
|
|
39
39
|
name: "string",
|
|
40
40
|
smallint: ["integer", "sort"],
|
|
41
41
|
integer: ["integer", "unixTimestamp", "sort"],
|
|
42
|
-
bigint: ["bigInt", "unixTimestamp", "sort"],
|
|
42
|
+
bigint: ["bigInt", "snowflakeId", "unixTimestamp", "sort"],
|
|
43
43
|
decimal: "decimal",
|
|
44
44
|
numeric: "float",
|
|
45
45
|
real: "float",
|
|
@@ -77,7 +77,7 @@ const mysql = {
|
|
|
77
77
|
int: ["integer", "unixTimestamp", "sort"],
|
|
78
78
|
"int unsigned": ["integer", "unixTimestamp", "sort"],
|
|
79
79
|
integer: ["integer", "unixTimestamp", "sort"],
|
|
80
|
-
bigint: ["bigInt", "unixTimestamp", "sort"],
|
|
80
|
+
bigint: ["bigInt", "snowflakeId", "unixTimestamp", "sort"],
|
|
81
81
|
"bigint unsigned": ["bigInt", "unixTimestamp", "sort"],
|
|
82
82
|
float: "float",
|
|
83
83
|
double: "float",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"license": "AGPL-3.0",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/logger": "2.0.0-alpha.
|
|
10
|
-
"@nocobase/utils": "2.0.0-alpha.
|
|
9
|
+
"@nocobase/logger": "2.0.0-alpha.48",
|
|
10
|
+
"@nocobase/utils": "2.0.0-alpha.48",
|
|
11
11
|
"async-mutex": "^0.3.2",
|
|
12
12
|
"chalk": "^4.1.1",
|
|
13
13
|
"cron-parser": "4.4.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
40
40
|
"directory": "packages/database"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "456be3a6e92f984fe283590c80d3ea9423695ba6"
|
|
43
43
|
}
|