@nocobase/database 0.17.0-alpha.2 → 0.17.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.
@@ -113,11 +113,11 @@ const _PostgresQueryInterface = class _PostgresQueryInterface extends import_que
113
113
  CREATE OR REPLACE FUNCTION show_create_table(p_schema text, p_table_name text)
114
114
  RETURNS text AS
115
115
  $BODY$
116
- SELECT 'CREATE TABLE ' || p_schema || '.' || p_table_name || ' (' || E'\\n' || '' ||
116
+ SELECT 'CREATE TABLE ' || quote_ident(p_schema) || '.' || quote_ident(p_table_name) || ' (' || E'\\n' || '' ||
117
117
  string_agg(column_list.column_expr, ', ' || E'\\n' || '') ||
118
118
  '' || E'\\n' || ');'
119
119
  FROM (
120
- SELECT ' ' || column_name || ' ' || data_type ||
120
+ SELECT ' ' || quote_ident(column_name) || ' ' || data_type ||
121
121
  coalesce('(' || character_maximum_length || ')', '') ||
122
122
  case when is_nullable = 'YES' then '' else ' NOT NULL' end as column_expr
123
123
  FROM information_schema.columns
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@nocobase/database",
3
- "version": "0.17.0-alpha.2",
3
+ "version": "0.17.0-alpha.4",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "license": "Apache-2.0",
8
8
  "dependencies": {
9
- "@nocobase/logger": "0.17.0-alpha.2",
10
- "@nocobase/utils": "0.17.0-alpha.2",
9
+ "@nocobase/logger": "0.17.0-alpha.4",
10
+ "@nocobase/utils": "0.17.0-alpha.4",
11
11
  "async-mutex": "^0.3.2",
12
+ "chalk": "^4.1.1",
12
13
  "cron-parser": "4.4.0",
13
14
  "dayjs": "^1.11.8",
14
15
  "deepmerge": "^4.2.2",
@@ -33,5 +34,5 @@
33
34
  "url": "git+https://github.com/nocobase/nocobase.git",
34
35
  "directory": "packages/database"
35
36
  },
36
- "gitHead": "c4d4383a1fde1058011e2f1fd1d9272812e6daeb"
37
+ "gitHead": "663b03a3799a70ba1a2bc6a0d686e679331a50ad"
37
38
  }