Skip to content

Commit

Permalink
db: Use proper Word64 support
Browse files Browse the repository at this point in the history
This commit uses a version of persistent that has been modified to add
proper Word64 support.

Previously when the schema used `Word64` as the column type, Persistent
would use `SqlInt64` as the SQL representation which means that `Word64`
values above `maxBound :: Int64` would be stored as negative values in
the database. That is fine for a database only accessed from Haskell but
is a pain in the neck when the database is used as an interop layer for
other languages.
  • Loading branch information
erikd committed Jul 5, 2020
1 parent 7adcfe7 commit f10ee45
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 72 deletions.
33 changes: 33 additions & 0 deletions cabal.project
Expand Up @@ -362,3 +362,36 @@ source-repository-package
tag: 1e0f1a27ff5f6e1a4108b42137c95675b33ffa74
--sha256: 189jgn0zlg885i4kabdm714wmk9dp3lxa78a9ryv0azq0rbl5my4
subdir: cardano-config







-- -----------------------------------------------------------------------------
-- Proper support for Word64

-- Allows esqueleto to use a new version of persistent.
allow-newer: persistent

source-repository-package
type: git
location: https://github.com/input-output-hk/persistent
tag: f56f1a2522741bcbc871d9d864e5365d38507a74
--sha256: 0000000000000000000000000000000000000000000000000000
subdir: persistent

source-repository-package
type: git
location: https://github.com/input-output-hk/persistent
tag: f56f1a2522741bcbc871d9d864e5365d38507a74
--sha256: 0000000000000000000000000000000000000000000000000000
subdir: persistent-postgresql

source-repository-package
type: git
location: https://github.com/input-output-hk/persistent
tag: f56f1a2522741bcbc871d9d864e5365d38507a74
--sha256: 0000000000000000000000000000000000000000000000000000
subdir: persistent-template
72 changes: 0 additions & 72 deletions schema/migration-2-0003-20200702.sql

This file was deleted.

0 comments on commit f10ee45

Please sign in to comment.