@nocobase/server 0.7.1-alpha.7 → 0.7.2-alpha.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.
- package/lib/application.js +10 -0
- package/lib/commands/db-sync.js +1 -0
- package/lib/commands/upgrade.js +1 -0
- package/package.json +6 -6
package/lib/application.js
CHANGED
|
@@ -387,6 +387,16 @@ class Application extends _koa().default {
|
|
|
387
387
|
|
|
388
388
|
return _asyncToGenerator(function* () {
|
|
389
389
|
yield _this9.emitAsync('beforeInstall', _this9, options);
|
|
390
|
+
const r = yield _this9.db.version.satisfies({
|
|
391
|
+
mysql: '8.x',
|
|
392
|
+
sqlite: '3.x',
|
|
393
|
+
postgres: '>=10'
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
if (!r) {
|
|
397
|
+
console.log('The database only supports MySQL 8.x, SQLite 3.x and PostgreSQL 10+');
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
390
400
|
|
|
391
401
|
if (options === null || options === void 0 ? void 0 : options.clean) {
|
|
392
402
|
yield _this9.db.clean((0, _lodash().isBoolean)(options.clean) ? {
|
package/lib/commands/db-sync.js
CHANGED
package/lib/commands/upgrade.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2-alpha.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@koa/cors": "^3.1.0",
|
|
15
15
|
"@koa/router": "^9.4.0",
|
|
16
|
-
"@nocobase/acl": "0.7.
|
|
17
|
-
"@nocobase/actions": "0.7.
|
|
18
|
-
"@nocobase/database": "0.7.
|
|
19
|
-
"@nocobase/resourcer": "0.7.
|
|
16
|
+
"@nocobase/acl": "0.7.2-alpha.1",
|
|
17
|
+
"@nocobase/actions": "0.7.2-alpha.1",
|
|
18
|
+
"@nocobase/database": "0.7.2-alpha.1",
|
|
19
|
+
"@nocobase/resourcer": "0.7.2-alpha.1",
|
|
20
20
|
"chalk": "^4.1.1",
|
|
21
21
|
"commander": "^9.2.0",
|
|
22
22
|
"find-package-json": "^1.2.0",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/semver": "^7.3.9"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "2e7958360628d6306845aabcb1e574a8e91d08ad"
|
|
34
34
|
}
|