fix: Make --dump-schema work with in-database pgrst.db_schemas setting
This needs to be loaded from in-database configuration first, otherwise the dump-schema output will be for the default (public) schema.
This commit is contained in:
committed by
Wolfgang Walther
parent
ee4bfbf253
commit
957472a7a7
@@ -44,7 +44,9 @@ main CLI{cliCommand, cliPath} = do
|
||||
CmdDumpConfig -> do
|
||||
when configDbConfig $ AppState.reReadConfig True appState
|
||||
putStr . Config.toText =<< AppState.getConfig appState
|
||||
CmdDumpSchema -> putStrLn =<< dumpSchema appState
|
||||
CmdDumpSchema -> do
|
||||
when configDbConfig $ AppState.reReadConfig True appState
|
||||
putStrLn =<< dumpSchema appState
|
||||
CmdRun -> App.run appState)
|
||||
|
||||
-- | Dump SchemaCache schema to JSON
|
||||
|
||||
Reference in New Issue
Block a user