Skip to content

Commit

Permalink
Merge pull request #4 from haskell-works/newhoggy/bugfix
Browse files Browse the repository at this point in the history
Use filepath that is passed into migrateUp and migrateDown.
  • Loading branch information
newhoggy authored Sep 2, 2024
2 parents 94be0f9 + df6bb59 commit 109d2f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions polysemy/Data/RdsData/Polysemy/Migration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ migrateDown :: ()
=> Member Resource r
=> FilePath
-> Sem r ()
migrateDown _migrationFp = do
value :: Migration <- readYamlFile "db/migration.yaml"
migrateDown migrationFp = do
value :: Migration <- readYamlFile migrationFp

let statements = value ^.. the @"plan" . to reverse . each . the @"down" . each

Expand All @@ -62,8 +62,8 @@ migrateUp :: ()
=> Member Resource r
=> FilePath
-> Sem r ()
migrateUp _migrationFp = do
value :: Migration <- readYamlFile "db/migration.yaml"
migrateUp migrationFp = do
value :: Migration <- readYamlFile migrationFp

let statements = value ^.. the @"plan" . each . the @"up" . each

Expand Down

0 comments on commit 109d2f0

Please sign in to comment.