Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed Nov 19, 2024
1 parent 5b131e9 commit f772b0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cardano-chain-gen/test/Test/Cardano/Db/Mock/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ withFullConfig' WithConfigArgs {..} cmdLineArgs mSyncNodeConfig configFilePath t
-- we dont fork dbsync here. Just prepare it as an action
withDBSyncEnv (mkDBSyncEnv dbsyncParams syncNodeConfig partialDbSyncRun) $ \dbSyncEnv -> do
let pgPass = getDBSyncPGPass dbSyncEnv
tableNames <- DB.getAllTablleNames pgPass
tableNames <- DB.getAllTableNames pgPass
-- We only want to create the table schema once for the tests so here we check
-- if there are any table names.
if null tableNames || shouldDropDB
Expand Down
6 changes: 3 additions & 3 deletions cardano-db/src/Cardano/Db/Migration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Cardano.Db.Migration (
getMigrationScripts,
runMigrations,
recreateDB,
getAllTablleNames,
getAllTableNames,
truncateTables,
dropTables,
getMaintenancePsqlConf,
Expand Down Expand Up @@ -298,8 +298,8 @@ recreateDB pgpass = do
rawExecute "drop schema if exists public cascade" []
rawExecute "create schema public" []

getAllTablleNames :: PGPassSource -> IO [Text]
getAllTablleNames pgpass = do
getAllTableNames :: PGPassSource -> IO [Text]
getAllTableNames pgpass = do
runWithConnectionNoLogging pgpass $ do
fmap unSingle <$> rawSql "SELECT tablename FROM pg_catalog.pg_tables WHERE schemaname = current_schema()" []

Expand Down

0 comments on commit f772b0d

Please sign in to comment.