@nocobase/plugin-multi-app-share-collection 0.14.0-alpha.2 → 0.14.0-alpha.4
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/dist/externalVersion.js +5 -5
- package/dist/server/plugin.js +5 -2
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"@formily/react": "2.2.27",
|
|
3
|
-
"@nocobase/client": "0.14.0-alpha.
|
|
4
|
-
"@nocobase/plugin-multi-app-manager": "0.14.0-alpha.
|
|
3
|
+
"@nocobase/client": "0.14.0-alpha.4",
|
|
4
|
+
"@nocobase/plugin-multi-app-manager": "0.14.0-alpha.4",
|
|
5
5
|
"antd": "5.8.6",
|
|
6
6
|
"react": "18.2.0",
|
|
7
|
-
"@nocobase/utils": "0.14.0-alpha.
|
|
7
|
+
"@nocobase/utils": "0.14.0-alpha.4",
|
|
8
8
|
"react-i18next": "11.18.6",
|
|
9
|
-
"@nocobase/server": "0.14.0-alpha.
|
|
9
|
+
"@nocobase/server": "0.14.0-alpha.4",
|
|
10
10
|
"lodash": "4.17.21",
|
|
11
|
-
"@nocobase/database": "0.14.0-alpha.
|
|
11
|
+
"@nocobase/database": "0.14.0-alpha.4"
|
|
12
12
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -106,9 +106,12 @@ class SubAppPlugin extends import_server.Plugin {
|
|
|
106
106
|
const subAppPluginsCollection = subApp.db.getCollection("applicationPlugins");
|
|
107
107
|
const mainAppPluginsCollection = mainApp.db.getCollection("applicationPlugins");
|
|
108
108
|
await subApp.db.sequelize.query(`TRUNCATE ${subAppPluginsCollection.quotedTableName()}`);
|
|
109
|
+
const columnsInfo = await subApp.db.sequelize.getQueryInterface().describeTable(subAppPluginsCollection.getTableNameWithSchema());
|
|
110
|
+
const columns = Object.keys(columnsInfo).sort();
|
|
111
|
+
const columnsInSql = columns.map((column) => `"${column}"`).join(", ");
|
|
109
112
|
await subApp.db.sequelize.query(`
|
|
110
|
-
INSERT INTO ${subAppPluginsCollection.quotedTableName()}
|
|
111
|
-
SELECT
|
|
113
|
+
INSERT INTO ${subAppPluginsCollection.quotedTableName()} (${columnsInSql})
|
|
114
|
+
SELECT ${columnsInSql}
|
|
112
115
|
FROM ${mainAppPluginsCollection.quotedTableName()}
|
|
113
116
|
WHERE "name" not in ('multi-app-manager', 'multi-app-share-collection');
|
|
114
117
|
`);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "多应用数据表共享",
|
|
5
5
|
"description": "",
|
|
6
6
|
"description.zh-CN": "",
|
|
7
|
-
"version": "0.14.0-alpha.
|
|
7
|
+
"version": "0.14.0-alpha.4",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@formily/react": "2.x",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"@nocobase/test": "0.x",
|
|
24
24
|
"@nocobase/utils": "0.x"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "e2aab7863bbdfd76afc7164272b275e868ac59c0"
|
|
27
27
|
}
|