packages feed

beam-automigrate 0.1.6.0 → 0.1.7.0

raw patch · 3 files changed

+16/−9 lines, 3 filesdep ~basenew-uploaderPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for beam-automigrate +## 0.1.7.0++* beam-automigrate will now only manage sequences within the search path, just as it only manages such tables.+ ## 0.1.6.0  * Fix instance HasSchemaConstraints build failure with GHC 9.2.8
beam-automigrate.cabal view
@@ -1,5 +1,5 @@ name:               beam-automigrate-version:            0.1.6.0+version:            0.1.7.0 license-file:       LICENSE build-type:         Simple cabal-version:      2.0@@ -84,7 +84,7 @@ library beam-automigrate-test-utils   hs-source-dirs: util   build-depends:-      base+      base                  >=4.9      && <5     , gargoyle-postgresql-connect     , postgresql-simple     , resource-pool@@ -100,7 +100,7 @@   main-is:            Main.hs   other-modules:      Test.Database.Beam.AutoMigrate.Arbitrary   build-depends:-      base+      base                  >=4.9      && <5     , beam-automigrate     , containers     , pretty-simple@@ -118,7 +118,7 @@   other-modules:      Test.Database.Beam.AutoMigrate.Arbitrary                       PostgresqlSyntax.Data.Orphans   build-depends:-      base+      base                  >=4.9      && <5     , beam-automigrate     , beam-automigrate-test-utils     , beam-core@@ -149,7 +149,7 @@    build-depends:       aeson-    , base+    , base                  >=4.9      && <5     , beam-automigrate     , beam-core     , beam-postgres@@ -182,7 +182,7 @@   hs-source-dirs:     large-migration-test   main-is:            Main.hs   build-depends:-      base+      base                  >=4.9      && <5     , beam-automigrate     , beam-postgres     , containers@@ -198,7 +198,7 @@   hs-source-dirs:   bench   main-is:          Main.hs   build-depends:-      base+      base                  >=4.9      && <5     , beam-automigrate     , beam-postgres     , bytestring@@ -214,7 +214,7 @@  executable readme   build-depends:-      base+      base                  >=4.9      && <5     , beam-automigrate     , beam-automigrate-test-utils     , beam-core
src/Database/Beam/AutoMigrate/Postgres.hs view
@@ -140,7 +140,10 @@  -- | Get the sequence data for all sequence types in the database. sequencesQ :: Pg.Query-sequencesQ = fromString "SELECT c.relname FROM pg_class c WHERE c.relkind = 'S'"+sequencesQ = fromString $ unlines+  [ "SELECT c.relname FROM pg_class c JOIN pg_catalog.pg_namespace ns ON (ns.oid = c.relnamespace)"+  , " WHERE nspname = any (current_schemas(false)) AND c.relkind = 'S'"+  ]  -- | Return all foreign key constraints for /all/ 'Table's. foreignKeysQ :: Pg.Query