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:
Wolfgang Walther
2024-07-09 09:09:22 +02:00
committed by Wolfgang Walther
parent 8f8dbd3425
commit 420933ceba
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- #3093, Nested empty embeds no longer show empty values and are correctly omitted - @laurenceisla
- #3644, Make --dump-schema work with in-database pgrst.db_schemas setting - @wolfgangwalther
## [12.2.1] - 2024-06-27
+3 -1
View File
@@ -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