]> git.nbdom.net Git - nb.git/commitdiff
postgres table from only public schema
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 29 Mar 2017 15:49:11 +0000 (16:49 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 29 Mar 2017 15:49:11 +0000 (16:49 +0100)
lib/php/db/types/pgsql.php

index ce315d5266a845246b4f07190276184e33d76a71..85b9fa08334fd1da8c0164fe1044403d69118a2e 100644 (file)
@@ -25,7 +25,8 @@ ORDER BY 1",
 'databases' => 'SELECT datname as name,pg_catalog.pg_get_userbyid(datdba) as owner,pg_catalog.pg_encoding_encoding) as encoding, datcollate as "collate",datctype as "Ctype" FROM pg_catalog.pg_database',
 
 'sql.drop' => 'DROP <T.TYPE> IF EXISTS "<T.NAME>" CASCADE',
-'tables' => "SELECT table_name as name,LOWER(CASE table_type WHEN 'BASE TABLE' THEN 'TABLE' ELSE table_type END) as type,table_type FROM information_schema.tables WHERE table_type in('BASE TABLE','VIEW') AND table_schema NOT IN ('pg_catalog', 'information_schema')",
+#'tables' => "SELECT table_name as name,LOWER(CASE table_type WHEN 'BASE TABLE' THEN 'TABLE' ELSE table_type END) as type,table_type FROM information_schema.tables WHERE table_type in('BASE TABLE','VIEW') AND table_schema NOT IN ('pg_catalog', 'information_schema')",
+'tables' => "SELECT table_name as name,LOWER(CASE table_type WHEN 'BASE TABLE' THEN 'TABLE' ELSE table_type END) as type,table_type FROM information_schema.tables WHERE table_type in('BASE TABLE','VIEW') AND table_schema = 'public'",
 
 # NB 02.08.16 'create' => function(&$field) {
 # NB 02.08.16   $r = array(