mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:26:45 +00:00
fix: upgrade error
This commit is contained in:
parent
bab10c928b
commit
5f609cec88
@ -55,15 +55,15 @@ export class PresetNocoBase extends Plugin {
|
||||
}
|
||||
const version = await this.app.version.get();
|
||||
console.log(`The version number before upgrade is ${version}`);
|
||||
const result = await this.app.version.satisfies('<0.8.0-alpha.1');
|
||||
if (result) {
|
||||
const r = await this.db.collectionExistsInDb('applicationPlugins');
|
||||
if (r) {
|
||||
console.log(`Clear the installed application plugins`);
|
||||
await this.db.getRepository('applicationPlugins').destroy({ truncate: true });
|
||||
await this.app.reload({ method: options.method });
|
||||
}
|
||||
}
|
||||
// const result = await this.app.version.satisfies('<0.8.0-alpha.1');
|
||||
// if (result) {
|
||||
// const r = await this.db.collectionExistsInDb('applicationPlugins');
|
||||
// if (r) {
|
||||
// console.log(`Clear the installed application plugins`);
|
||||
// await this.db.getRepository('applicationPlugins').destroy({ truncate: true });
|
||||
// await this.app.reload({ method: options.method });
|
||||
// }
|
||||
// }
|
||||
});
|
||||
this.app.on('beforeUpgrade', async (options) => {
|
||||
const result = await this.app.version.satisfies('<0.8.0-alpha.1');
|
||||
|
192
yarn.lock
192
yarn.lock
@ -3639,13 +3639,6 @@
|
||||
dependencies:
|
||||
regenerator-runtime "^0.13.4"
|
||||
|
||||
"@babel/runtime@^7.17.2":
|
||||
version "7.20.13"
|
||||
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.13.tgz#7055ab8a7cff2b8f6058bf6ae45ff84ad2aded4b"
|
||||
integrity sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==
|
||||
dependencies:
|
||||
regenerator-runtime "^0.13.11"
|
||||
|
||||
"@babel/runtime@^7.18.0", "@babel/runtime@^7.20.0":
|
||||
version "7.20.6"
|
||||
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz#facf4879bfed9b5326326273a64220f099b0fce3"
|
||||
@ -5388,164 +5381,6 @@
|
||||
call-me-maybe "^1.0.1"
|
||||
glob-to-regexp "^0.3.0"
|
||||
|
||||
"@nocobase/acl@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/acl/-/acl-0.8.1-alpha.4.tgz#2c971b5bd79c2522d9b67bb415d6c1d54d040d5d"
|
||||
integrity sha512-avj/wansqBBD6dab4YZAnsXaDk50JbXpnqrMVr1qMCO+h2ZDteULLWBmXrSa6tpzOjj8GMVmq5R779SMMZXV3w==
|
||||
dependencies:
|
||||
"@nocobase/resourcer" "0.8.1-alpha.4"
|
||||
json-templates "^4.2.0"
|
||||
|
||||
"@nocobase/actions@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/actions/-/actions-0.8.1-alpha.4.tgz#4e49e706e77c496c868b9bb09d20c54d5b122d65"
|
||||
integrity sha512-1pz9oANr8d3hQ5ZlcV+uL2UglC/p5Xyd+1mRTDIGEv6BfkZ2mKGV8DuWGlRHAZWyB7O5LyVn/nVs3SOqFlfZ8Q==
|
||||
dependencies:
|
||||
"@nocobase/cache" "0.8.1-alpha.4"
|
||||
"@nocobase/database" "0.8.1-alpha.4"
|
||||
"@nocobase/resourcer" "0.8.1-alpha.4"
|
||||
|
||||
"@nocobase/cache@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/cache/-/cache-0.8.1-alpha.4.tgz#f5dfa214ba76e5669d4d0e26839f9656e4b1551d"
|
||||
integrity sha512-TWDmnL+r86KI3AzlyiCMXeCbs+Ils5UtyWwQ+B4KlGjo3u3/V06GnxmHq/Ulpeac9fU6/83cIqJmDJczjk16jA==
|
||||
dependencies:
|
||||
cache-manager "^4.1.0"
|
||||
|
||||
"@nocobase/client@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/client/-/client-0.8.1-alpha.4.tgz#2e4152d44529c734d7d61b6312b8a2ca6c1b31b5"
|
||||
integrity sha512-Y7gOD/0UAMBL0wa8YaN4F96GBscBl+jNx9gCSt2CyUVFYmXnMRQnXTPc3nFbJL2XX1h8KenIH+vDT2UUJOc2Ag==
|
||||
dependencies:
|
||||
"@antv/g2plot" "^2.4.18"
|
||||
"@dnd-kit/core" "^5.0.1"
|
||||
"@dnd-kit/sortable" "^6.0.0"
|
||||
"@emotion/css" "^11.7.1"
|
||||
"@formily/antd" "2.0.20"
|
||||
"@formily/core" "2.0.20"
|
||||
"@formily/react" "2.0.20"
|
||||
"@nocobase/sdk" "0.8.1-alpha.4"
|
||||
"@nocobase/utils" "0.8.1-alpha.4"
|
||||
ahooks "^3.7.2"
|
||||
antd "4.22.8"
|
||||
axios "^0.26.1"
|
||||
classnames "^2.3.1"
|
||||
cron-parser "^4.6.0"
|
||||
cronstrue "^2.11.0"
|
||||
file-saver "^2.0.5"
|
||||
i18next "^21.6.0"
|
||||
json-templates "^4.2.0"
|
||||
marked "^4.0.12"
|
||||
mathjs "^10.6.0"
|
||||
react-beautiful-dnd "^13.1.0"
|
||||
react-big-calendar "^0.38.7"
|
||||
react-contenteditable "^3.3.6"
|
||||
react-drag-listview "^0.1.9"
|
||||
react-helmet "^6.1.0"
|
||||
react-hotkeys-hook "^3.4.7"
|
||||
react-i18next "^11.15.1"
|
||||
react-iframe "~1.8.5"
|
||||
react-image-lightbox "^5.1.4"
|
||||
react-js-cron "^1.4.0"
|
||||
react-quill "^1.3.5"
|
||||
react-router-dom "^5.2.0"
|
||||
react-to-print "^2.14.7"
|
||||
solarlunar-es "^1.0.9"
|
||||
use-deep-compare-effect "^1.8.1"
|
||||
|
||||
"@nocobase/database@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/database/-/database-0.8.1-alpha.4.tgz#f12a900cd1559ff0a583bdeb8abe0f2a1c472103"
|
||||
integrity sha512-0lRTM43XUV5QIvNc0l8RGL+aay6WTL2ft1uYSUDXHbn4p+hgfJtZq+1cF+SwSLFM3i66//uSQ9apkHSwjoqFJA==
|
||||
dependencies:
|
||||
"@nocobase/utils" "0.8.1-alpha.4"
|
||||
async-mutex "^0.3.2"
|
||||
cron-parser "4.4.0"
|
||||
deepmerge "^4.2.2"
|
||||
flat "^5.0.2"
|
||||
glob "^7.1.6"
|
||||
mathjs "^10.6.1"
|
||||
moment "2.x"
|
||||
semver "^7.3.7"
|
||||
sequelize "^6.26.0"
|
||||
umzug "^3.1.1"
|
||||
|
||||
"@nocobase/logger@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/logger/-/logger-0.8.1-alpha.4.tgz#bb4597548a8b7d4ecaef670feed4c64feb607dc3"
|
||||
integrity sha512-2STTXjPDq9MDl5hMWIQMnaNXFdKl8YOrMNJqwcGYpNeXW6xr4KoDwpMfHQb3DUHid0OILVNOg6cWCZuvFks4Qg==
|
||||
dependencies:
|
||||
lodash "^4.17.21"
|
||||
winston "^3.8.2"
|
||||
winston-daily-rotate-file "^4.7.1"
|
||||
|
||||
"@nocobase/resourcer@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/resourcer/-/resourcer-0.8.1-alpha.4.tgz#8bbcba1e225a9a1743f940373bc2e6488700f3af"
|
||||
integrity sha512-+r02gA+1V4K+lGLmcq84/bMLU6OLQ7DnSBUJpMNLteiDiLgYmsanoGkjeH/dqss8fGfEQW26+pcfDny2SoaWJA==
|
||||
dependencies:
|
||||
"@nocobase/utils" "0.8.1-alpha.4"
|
||||
deepmerge "^4.2.2"
|
||||
koa-compose "^4.1.0"
|
||||
lodash "^4.17.21"
|
||||
path-to-regexp "^6.1.0"
|
||||
qs "^6.9.4"
|
||||
|
||||
"@nocobase/sdk@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/sdk/-/sdk-0.8.1-alpha.4.tgz#d2ef03ff855b861ae1a0ccbf3daf198b74e6c2a4"
|
||||
integrity sha512-ZIOyC2KmW5Sb5H49jUSbQeEIA8WWL4cGYfnqKSo0ZaQE4rq+vs3adYtqO4C1I8dVy7oEXut6wHHwCQT8/m15/A==
|
||||
dependencies:
|
||||
axios "^0.26.1"
|
||||
qs "^6.10.1"
|
||||
|
||||
"@nocobase/server@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/server/-/server-0.8.1-alpha.4.tgz#683eb80ee140e2212639534f0fc44e052d497f46"
|
||||
integrity sha512-kF9G6uN9kiB87egusl2zDFR41edzQcxamakKlnPLM+xXEQLhN79za7KazJq59h0ZPqvBQsyeMI/0hbx6qICRaw==
|
||||
dependencies:
|
||||
"@hapi/topo" "^6.0.0"
|
||||
"@koa/cors" "^3.1.0"
|
||||
"@koa/router" "^9.4.0"
|
||||
"@nocobase/acl" "0.8.1-alpha.4"
|
||||
"@nocobase/actions" "0.8.1-alpha.4"
|
||||
"@nocobase/database" "0.8.1-alpha.4"
|
||||
"@nocobase/logger" "0.8.1-alpha.4"
|
||||
"@nocobase/resourcer" "0.8.1-alpha.4"
|
||||
chalk "^4.1.1"
|
||||
commander "^9.2.0"
|
||||
find-package-json "^1.2.0"
|
||||
i18next "^21.6.0"
|
||||
koa "^2.13.4"
|
||||
koa-bodyparser "^4.3.0"
|
||||
koa-static "^5.0.0"
|
||||
lodash "^4.17.21"
|
||||
semver "^7.3.7"
|
||||
xpipe "^1.0.5"
|
||||
|
||||
"@nocobase/test@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/test/-/test-0.8.1-alpha.4.tgz#9cc36f509ce3b31497c35e26ff82a416c98769db"
|
||||
integrity sha512-Pj/MtqaHicRl440BrCCfKk+y21i8l+MgkwLWKoFu7fxPBA7zKf+iB7z5KIt48kFe1AbX+Mm9mIgnBR/bZUuGEw==
|
||||
dependencies:
|
||||
"@nocobase/server" "0.8.1-alpha.4"
|
||||
"@types/supertest" "^2.0.11"
|
||||
mockjs "^1.1.0"
|
||||
mysql2 "^2.3.3"
|
||||
pg "^8.7.3"
|
||||
pg-hstore "^2.3.4"
|
||||
sqlite3 "^5.0.8"
|
||||
supertest "^6.1.6"
|
||||
|
||||
"@nocobase/utils@0.8.1-alpha.4":
|
||||
version "0.8.1-alpha.4"
|
||||
resolved "https://registry.npmjs.org/@nocobase/utils/-/utils-0.8.1-alpha.4.tgz#4558cc5b914d41841d51e727fe6d9f58b3a7f04a"
|
||||
integrity sha512-6YsHFTUzGCDgSRgxr7YZ1RUsSgwHXEz5j/2W8mTRYd94Psmp5XiEnxF1kMuGDSVffaQvWNvvUzwGrb3yB/uBUA==
|
||||
dependencies:
|
||||
"@hapi/topo" "^6.0.0"
|
||||
deepmerge "^4.2.2"
|
||||
flat-to-nested "^1.1.1"
|
||||
|
||||
"@node-saml/node-saml@^4.0.2":
|
||||
version "4.0.2"
|
||||
resolved "https://registry.npmjs.org/@node-saml/node-saml/-/node-saml-4.0.2.tgz#e12020ea635346f33fcef008fe0e6fa2f28713e5"
|
||||
@ -6607,14 +6442,7 @@
|
||||
resolved "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc"
|
||||
integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==
|
||||
|
||||
"@types/react-dom@^16.9.8":
|
||||
version "16.9.17"
|
||||
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.17.tgz#29100cbcc422d7b7dba7de24bb906de56680dd34"
|
||||
integrity sha512-qSRyxEsrm5btPXnowDOs5jSkgT8ldAA0j6Qp+otHUh+xHzy3sXmgNfyhucZjAjkgpdAUw9rJe0QRtX/l+yaS4g==
|
||||
dependencies:
|
||||
"@types/react" "^16"
|
||||
|
||||
"@types/react-dom@^17.0.0":
|
||||
"@types/react-dom@^16.9.8", "@types/react-dom@^17.0.0":
|
||||
version "17.0.11"
|
||||
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.11.tgz#e1eadc3c5e86bdb5f7684e00274ae228e7bcc466"
|
||||
integrity sha512-f96K3k+24RaLGVu/Y2Ng3e1EbZ8/cVJvypZWd7cy0ofCBaf2lcM46xNhycMZ2xGwbBjRql7hOlZ+e2WlJ5MH3Q==
|
||||
@ -6674,7 +6502,7 @@
|
||||
"@types/history" "*"
|
||||
"@types/react" "*"
|
||||
|
||||
"@types/react@*", "@types/react@>=16.9.11", "@types/react@^17.0.0":
|
||||
"@types/react@*", "@types/react@>=16.9.11", "@types/react@^16.9.43", "@types/react@^17.0.0":
|
||||
version "17.0.34"
|
||||
resolved "https://registry.npmjs.org/@types/react/-/react-17.0.34.tgz#797b66d359b692e3f19991b6b07e4b0c706c0102"
|
||||
integrity sha512-46FEGrMjc2+8XhHXILr+3+/sTe3OfzSPU9YGKILLrUYbQ1CLQC9Daqo1KzENGXAWwrFwiY0l4ZbF20gRvgpWTg==
|
||||
@ -6683,15 +6511,6 @@
|
||||
"@types/scheduler" "*"
|
||||
csstype "^3.0.2"
|
||||
|
||||
"@types/react@^16", "@types/react@^16.9.43":
|
||||
version "16.14.35"
|
||||
resolved "https://registry.npmjs.org/@types/react/-/react-16.14.35.tgz#9d3cf047d85aca8006c4776693124a5be90ee429"
|
||||
integrity sha512-NUEiwmSS1XXtmBcsm1NyRRPYjoZF2YTE89/5QiLt5mlGffYK9FQqOKuOLuXNrjPQV04oQgaZG+Yq02ZfHoFyyg==
|
||||
dependencies:
|
||||
"@types/prop-types" "*"
|
||||
"@types/scheduler" "*"
|
||||
csstype "^3.0.2"
|
||||
|
||||
"@types/resolve@1.17.1":
|
||||
version "1.17.1"
|
||||
resolved "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz#3afd6ad8967c77e4376c598a82ddd58f46ec45d6"
|
||||
@ -13690,13 +13509,6 @@ i18next-http-backend@^2.1.1:
|
||||
dependencies:
|
||||
cross-fetch "3.1.5"
|
||||
|
||||
i18next@^21.6.0:
|
||||
version "21.10.0"
|
||||
resolved "https://registry.npmjs.org/i18next/-/i18next-21.10.0.tgz#85429af55fdca4858345d0e16b584ec29520197d"
|
||||
integrity sha512-YeuIBmFsGjUfO3qBmMOc0rQaun4mIpGKET5WDwvu8lU7gvwpcariZLNtL0Fzj+zazcHUrlXHiptcFhBMFaxzfg==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.17.2"
|
||||
|
||||
i18next@^22.4.9:
|
||||
version "22.4.9"
|
||||
resolved "https://registry.npmjs.org/i18next/-/i18next-22.4.9.tgz#98c8384c6bd41ff937da98b1e809ba03d3b41053"
|
||||
|
Loading…
Reference in New Issue
Block a user