@@ -46,11 +46,6 @@ source-repository head
4646 type : git
4747 location : https://github.com/haskell-github-trust/dbmigrations
4848
49- flag mysql
50- description : Build the mysql executable (and tests) application
51- manual : False
52- default : False
53-
5449flag postgresql
5550 description : Build the postgresql executable (and tests) application
5651 manual : False
@@ -129,6 +124,49 @@ library
129124 if impl(ghc >= 8.10 )
130125 ghc-options : -Wno-missing-safe-haskell-mode
131126
127+ executable dbm-postgresql
128+ main-is : Main.hs
129+ other-modules :
130+ Paths_dbmigrations
131+ hs-source-dirs :
132+ postgresql/app
133+ default-extensions :
134+ BangPatterns
135+ DataKinds
136+ DeriveAnyClass
137+ DeriveFoldable
138+ DeriveFunctor
139+ DeriveGeneric
140+ DeriveLift
141+ DeriveTraversable
142+ DerivingStrategies
143+ FlexibleContexts
144+ FlexibleInstances
145+ GADTs
146+ GeneralizedNewtypeDeriving
147+ LambdaCase
148+ MultiParamTypeClasses
149+ NoImplicitPrelude
150+ NoMonomorphismRestriction
151+ OverloadedStrings
152+ RankNTypes
153+ ScopedTypeVariables
154+ StandaloneDeriving
155+ TypeApplications
156+ TypeFamilies
157+ ghc-options : -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-safe -Wno-unsafe -threaded -rtsopts "-with-rtsopts=-N"
158+ build-depends :
159+ HDBC-postgresql
160+ , base < 5
161+ , dbmigrations
162+ default-language : GHC2021
163+ if impl(ghc >= 9.2 )
164+ ghc-options : -Wno-missing-kind-signatures
165+ if impl(ghc >= 8.10 )
166+ ghc-options : -Wno-missing-safe-haskell-mode
167+ if !(flag(postgresql))
168+ buildable : False
169+
132170executable dbm-sqlite
133171 main-is : Main.hs
134172 other-modules :
@@ -172,6 +210,52 @@ executable dbm-sqlite
172210 if !(flag(sqlite))
173211 buildable : False
174212
213+ test-suite postgresql-spec
214+ type : exitcode-stdio-1.0
215+ main-is : Main.hs
216+ other-modules :
217+ Paths_dbmigrations
218+ hs-source-dirs :
219+ postgresql/tests
220+ default-extensions :
221+ BangPatterns
222+ DataKinds
223+ DeriveAnyClass
224+ DeriveFoldable
225+ DeriveFunctor
226+ DeriveGeneric
227+ DeriveLift
228+ DeriveTraversable
229+ DerivingStrategies
230+ FlexibleContexts
231+ FlexibleInstances
232+ GADTs
233+ GeneralizedNewtypeDeriving
234+ LambdaCase
235+ MultiParamTypeClasses
236+ NoImplicitPrelude
237+ NoMonomorphismRestriction
238+ OverloadedStrings
239+ RankNTypes
240+ ScopedTypeVariables
241+ StandaloneDeriving
242+ TypeApplications
243+ TypeFamilies
244+ ghc-options : -fwrite-ide-info -Weverything -Wno-all-missed-specialisations -Wno-missed-specialisations -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-safe -Wno-unsafe -threaded -rtsopts "-with-rtsopts=-N"
245+ build-depends :
246+ HDBC
247+ , HDBC-postgresql
248+ , base < 5
249+ , dbmigrations
250+ , hspec
251+ default-language : GHC2021
252+ if impl(ghc >= 9.2 )
253+ ghc-options : -Wno-missing-kind-signatures
254+ if impl(ghc >= 8.10 )
255+ ghc-options : -Wno-missing-safe-haskell-mode
256+ if !(flag(postgresql))
257+ buildable : False
258+
175259test-suite spec
176260 type : exitcode-stdio-1.0
177261 main-is : Spec.hs
0 commit comments