@nocobase/plugin-ui-schema-storage 0.9.0-alpha.2 → 0.9.1-alpha.2

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/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # ui-schema-storage
2
+
3
+ English | [中文](./README.zh-CN.md)
4
+
5
+ ## 安装激活
6
+
7
+ 内置插件无需手动安装激活。
8
+
9
+ ## 使用方法
@@ -0,0 +1,9 @@
1
+ # ui-schema-storage
2
+
3
+ [English](./README.md) | 中文
4
+
5
+ ## 安装激活
6
+
7
+ 内置插件无需手动安装激活。
8
+
9
+ ## 使用方法
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
+ namespace: 'ui-schema-storage',
9
+ duplicator: 'required',
8
10
  name: 'uiSchemaServerHooks',
9
11
  model: 'ServerHookModel',
10
12
  // autoGenId: false,
@@ -16,6 +16,8 @@ function _database() {
16
16
  }
17
17
 
18
18
  var _default = (0, _database().defineCollection)({
19
+ namespace: 'ui-schema-storage',
20
+ duplicator: 'required',
19
21
  name: 'uiSchemaTemplates',
20
22
  autoGenId: false,
21
23
  fields: [{
@@ -44,7 +46,8 @@ var _default = (0, _database().defineCollection)({
44
46
  name: 'collection',
45
47
  target: 'collections',
46
48
  foreignKey: 'collectionName',
47
- targetKey: 'name'
49
+ targetKey: 'name',
50
+ onDelete: 'CASCADE'
48
51
  }]
49
52
  });
50
53
 
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
+ namespace: 'ui-schema-storage',
9
+ duplicator: 'required',
8
10
  name: 'uiSchemaTreePath',
9
11
  autoGenId: false,
10
12
  timestamps: false,
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
+ namespace: 'ui-schema-storage',
9
+ duplicator: 'required',
8
10
  name: 'uiSchemas',
9
11
  title: '字段配置',
10
12
  autoGenId: false,
package/lib/repository.js CHANGED
@@ -162,7 +162,7 @@ class UiSchemaRepository extends _database().Repository {
162
162
 
163
163
  tableNameAdapter(tableName) {
164
164
  if (this.database.sequelize.getDialect() === 'postgres') {
165
- return `"${tableName}"`;
165
+ return `"${this.database.options.schema || 'public'}"."${tableName}"`;
166
166
  }
167
167
 
168
168
  return tableName;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-ui-schema-storage",
3
- "version": "0.9.0-alpha.2",
3
+ "version": "0.9.1-alpha.2",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "devDependencies": {
9
9
  "@formily/json-schema": "2.0.20",
10
- "@nocobase/test": "0.9.0-alpha.2"
10
+ "@nocobase/test": "0.9.1-alpha.2"
11
11
  },
12
- "gitHead": "b8f76ad38e60e677c5bb4aab0a4cdb28d98a0f49"
12
+ "gitHead": "d588a68eca4feed4642a4cb317301011266fe5c9"
13
13
  }