Revert to the old way of displaying the list of tables

This commit is contained in:
Ruslan Talpa
2015-11-03 09:31:56 +02:00
parent b3e88a37d3
commit 14e806759d
5 changed files with 66 additions and 58 deletions
+3 -5
View File
@@ -56,18 +56,16 @@ withApp perform = do
let txSettings = Just (H.ReadCommitted, Just True)
metadata <- H.session pool $ H.tx txSettings $ do
tabs <- allTables
rels <- allRelations
cols <- allColumns rels
keys <- allPrimaryKeys
return (tabs, rels, cols, keys)
return (rels, cols, keys)
dbstructure <- case metadata of
Left e -> fail $ show e
Right (tabs, rels, cols, keys) ->
Right (rels, cols, keys) ->
return DbStructure {
tables=tabs
, columns=cols
columns=cols
, relations=rels
, primaryKeys=keys
}