From e7f9934f03b5d02904d0249d4fe63dfa1a73797a Mon Sep 17 00:00:00 2001 From: wispem-wantex Date: Sat, 23 Aug 2025 15:59:08 -0700 Subject: [PATCH] SQL whitespace --- pkg/schema/views.sql | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/schema/views.sql b/pkg/schema/views.sql index 04d9fb8..6b91a39 100644 --- a/pkg/schema/views.sql +++ b/pkg/schema/views.sql @@ -10,15 +10,15 @@ create temporary view tables as create temporary view columns as select tables.name as table_name, - table_info.name as column_name, - lower(table_info.type) as column_type, - "notnull", - dflt_value is not null as has_default_value, - ifnull(dflt_value, 0) dflt_value, - pk as is_primary_key, - fk."table" is not null as is_foreign_key, - ifnull(fk."table", '') as fk_target_table, - ifnull(fk."to", '') as fk_target_column - from tables - join pragma_table_info(tables.name) as table_info - left join pragma_foreign_key_list(tables.name) as fk on fk."from" = column_name; + table_info.name as column_name, + lower(table_info.type) as column_type, + "notnull", + dflt_value is not null as has_default_value, + ifnull(dflt_value, 0) dflt_value, + pk as is_primary_key, + fk."table" is not null as is_foreign_key, + ifnull(fk."table", '') as fk_target_table, + ifnull(fk."to", '') as fk_target_column + from tables + join pragma_table_info(tables.name) as table_info + left join pragma_foreign_key_list(tables.name) as fk on fk."from" = column_name;