backend-plus 2.0.0-rc.28 → 2.0.0-rc.29
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/lib/backend-plus.js +24 -0
- package/package.json +9 -9
package/lib/backend-plus.js
CHANGED
|
@@ -2682,6 +2682,30 @@ AppBackend.prototype.dumpDbSchemaPartial = async function dumpDbSchemaPartial(pa
|
|
|
2682
2682
|
}
|
|
2683
2683
|
var schema=db.quoteIdent(be.config.db.schema);
|
|
2684
2684
|
linesCreate.push("set role to "+owner+";");
|
|
2685
|
+
linesCreate.push(`do
|
|
2686
|
+
$do$
|
|
2687
|
+
declare
|
|
2688
|
+
vExpectedVersion text := '${be.config.db["min-version"]}';
|
|
2689
|
+
vCurrentVersion text := (select setting from pg_settings where name = 'server_version');
|
|
2690
|
+
begin
|
|
2691
|
+
if jsonb('['||replace(vCurrentVersion,'.',',')||']') < jsonb('['||replace(vExpectedVersion,'.',',')||']') then
|
|
2692
|
+
raise exception 'BACKEND-PLUS DUMP: Old PostrgreSQL Version % expected %', vCurrentVersion, vExpectedVersion;
|
|
2693
|
+
end if;
|
|
2694
|
+
end;
|
|
2695
|
+
$do$;
|
|
2696
|
+
`);
|
|
2697
|
+
linesCreate.push(`do
|
|
2698
|
+
$do$
|
|
2699
|
+
declare
|
|
2700
|
+
vExpected text := 'UTF8';
|
|
2701
|
+
vCurrent text := coalesce((select setting from pg_settings where name = 'server_encoding'),'unknown');
|
|
2702
|
+
begin
|
|
2703
|
+
if vCurrent is distinct from vExpected then
|
|
2704
|
+
raise exception 'BACKEND-PLUS DUMP: PostrgreSQL server_encoding %, expected %', vCurrent, vExpected;
|
|
2705
|
+
end if;
|
|
2706
|
+
end;
|
|
2707
|
+
$do$;
|
|
2708
|
+
`);
|
|
2685
2709
|
linesCreate.push("drop schema if exists "+schema+' cascade;');
|
|
2686
2710
|
if (be.config.install.dump["drop-his"]) {
|
|
2687
2711
|
linesCreate.push("drop schema if exists his cascade;");
|
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.0.0-rc.
|
|
4
|
+
"version": "2.0.0-rc.29",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/backend-plus",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"js-yaml": "^4.1.0",
|
|
50
50
|
"json4all": "^1.3.0-beta.1",
|
|
51
51
|
"lazy-some": "^0.1.0",
|
|
52
|
-
"like-ar": "^0.
|
|
52
|
+
"like-ar": "^0.5.0",
|
|
53
53
|
"login-plus": "^1.7.1",
|
|
54
54
|
"memorystore": "^1.6.7",
|
|
55
55
|
"mini-tools": "^1.12.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"multiparty": "^4.2.3",
|
|
58
58
|
"nodemailer": "^6.9.14",
|
|
59
59
|
"numeral": "^2.0.6",
|
|
60
|
-
"pg-promise-strict": "^1.4.
|
|
60
|
+
"pg-promise-strict": "^1.4.1",
|
|
61
61
|
"pikaday": "^1.8.2",
|
|
62
62
|
"pug": "^3.0.3",
|
|
63
63
|
"read-yaml-promise": "^1.0.2",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"sql-tools": "^0.1.2",
|
|
70
70
|
"stack-trace": "^0.0.10",
|
|
71
71
|
"stylus": "0.63.0",
|
|
72
|
-
"type-store": "^0.4.
|
|
73
|
-
"typed-controls": "^0.12.
|
|
72
|
+
"type-store": "^0.4.2",
|
|
73
|
+
"typed-controls": "^0.12.1",
|
|
74
74
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@types/js-yaml": "^4.0.9",
|
|
83
83
|
"@types/mocha": "^10.0.7",
|
|
84
84
|
"@types/multiparty": "~0.0.36",
|
|
85
|
-
"@types/node": "^22.
|
|
85
|
+
"@types/node": "^22.5.2",
|
|
86
86
|
"@types/nodemailer": "^6.4.15",
|
|
87
87
|
"@types/numeral": "~2.0.5",
|
|
88
88
|
"@types/session-file-store": "^1.2.5",
|
|
@@ -90,16 +90,16 @@
|
|
|
90
90
|
"@types/websql": "~0.0.30",
|
|
91
91
|
"esprima": "^4.0.1",
|
|
92
92
|
"expect.js": "~0.3.1",
|
|
93
|
-
"karma": "6.4.
|
|
93
|
+
"karma": "6.4.4",
|
|
94
94
|
"karma-chrome-launcher": "^3.2.0",
|
|
95
95
|
"karma-expect": "^1.1.3",
|
|
96
96
|
"karma-firefox-launcher": "^2.1.3",
|
|
97
97
|
"karma-ie-launcher": "^1.0.0",
|
|
98
98
|
"karma-mocha": "^2.0.1",
|
|
99
99
|
"kill-9": "~0.4.3",
|
|
100
|
-
"mocha": "^10.7.
|
|
100
|
+
"mocha": "^10.7.3",
|
|
101
101
|
"nyc": "^17.0.0",
|
|
102
|
-
"puppeteer": "^
|
|
102
|
+
"puppeteer": "^23.2.1",
|
|
103
103
|
"sinon": "^18.0.0",
|
|
104
104
|
"supertest": "^7.0.0",
|
|
105
105
|
"types.d.ts": "~0.6.21",
|