mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +00:00
updated tableModifications.js
This commit is contained in:
parent
4b2e28483b
commit
4d8c62f3f5
@ -2,7 +2,7 @@ module.exports = `
|
|||||||
select infoTables.table_schema as "schema_name", infoTables.table_name as "pure_name",
|
select infoTables.table_schema as "schema_name", infoTables.table_name as "pure_name",
|
||||||
(
|
(
|
||||||
select md5(string_agg(
|
select md5(string_agg(
|
||||||
infoColumns.column_name || '|' || infoColumns.data_type || '|' || infoColumns.is_nullable::varchar(255) || '|' || coalesce(infoColumns.character_maximum_length, -1)::varchar(255)
|
infoColumns.column_name || '|' || case when (infoColumns.data_type = 'USER-DEFINED' OR infoColumns.data_type = 'ARRAY') then infoColumns.udt_name::regtype::text else infoColumns.data_type end || '|' || infoColumns.is_nullable::varchar(255) || '|' || coalesce(infoColumns.character_maximum_length, -1)::varchar(255)
|
||||||
|| '|' || coalesce(infoColumns.numeric_precision, -1)::varchar(255) ,
|
|| '|' || coalesce(infoColumns.numeric_precision, -1)::varchar(255) ,
|
||||||
',' order by infoColumns.ordinal_position
|
',' order by infoColumns.ordinal_position
|
||||||
)) as "hash_code_columns"
|
)) as "hash_code_columns"
|
||||||
|
Loading…
Reference in New Issue
Block a user