Update columns.js

This commit is contained in:
Bare7a 2024-04-06 17:21:06 +03:00 committed by GitHub
parent 1e818e7756
commit 3cd070e211
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,10 +4,10 @@ select
table_name as "pure_name",
column_name as "column_name",
is_nullable as "is_nullable",
case
when (data_type = 'USER-DEFINED' OR data_type = 'ARRAY') then udt_name::regtype::text
else data_type
end
case
when (data_type = 'USER-DEFINED' OR data_type = 'ARRAY') then udt_name::regtype::text
else data_type
end
as "data_type",
character_maximum_length as "char_max_length",
numeric_precision as "numeric_precision",
@ -24,4 +24,4 @@ where
('views:' || table_schema || '.' || table_name) =OBJECT_ID_CONDITION
)
order by ordinal_position
`;
`;